cinsiyet eklenior
This commit is contained in:
parent
35ec03156e
commit
f7d9921a54
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue