cinsiyet eklenior

This commit is contained in:
merdan 2022-09-27 19:05:41 +05:00
parent 35ec03156e
commit f7d9921a54
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ func getCats(db *gorm.DB, catIDs []int) ([]gm.Category, string, error) {
var keywords string var keywords string
if errCat := db.Preload("Translations", "locale=?", "tm").Find(&categories, catIDs).Error; errCat != nil { if errCat := db.Preload("Translations", "locale=?", "tm").Find(&categories, catIDs).Error; errCat != nil {
log.Println(errCat) //log.Println(errCat)
return categories, keywords, errCat return categories, keywords, errCat
} }
@ -246,7 +246,7 @@ func ImportProduct(product models.Product, db *gorm.DB) error {
return errCat return errCat
} }
return tx.Rollback().Error //return tx.Rollback().Error
brand, err := gm.FindOrCreateBrand(&tx, product.Brand, categories) brand, err := gm.FindOrCreateBrand(&tx, product.Brand, categories)
if err != nil { if err != nil {