transaction
This commit is contained in:
parent
627964796f
commit
5a545c17ae
|
|
@ -30,7 +30,7 @@ func FindOrCreateBrand(db *gorm.DB, brand string, categories []Category) Brand {
|
||||||
// err := db.Model(&Brand{}).Find(&brandObject).Error
|
// err := db.Model(&Brand{}).Find(&brandObject).Error
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err.Error())
|
log.Println("ERR0000000000000001" + err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue