1nwf / Produx-v2

Audit required: SkipDefaultTransaction set to false GO-W1004
Bug risk
Major
1 occurrence in this check
SkipDefaultTransaction (gorm.Config) is set (or default) to "false"; consider skipping the default transaction by setting the value of field "true", if not required
 20		panic(err)
 21	}
 22	dsn := "host=" + os.Getenv("POSTGRES_HOST") + " user=nwf password=root dbname=ps1 port=5432 sslmode=disable"
 23	DB, err := gorm.Open(postgres.Open(dsn), &gorm.Config{}) 24
 25	if err != nil {
 26		log.Fatal(err)