added new category error, and some fixes
This commit is contained in:
@@ -28,6 +28,7 @@ func (r *ProductDescriptionRepo) GetProductDescription(productID uint, productid
|
||||
var ProductDescription model.ProductDescription
|
||||
|
||||
err := db.Get().
|
||||
Model(dbmodel.PsProductLang{}).
|
||||
Where(&dbmodel.PsProductLang{
|
||||
IDProduct: int32(productID),
|
||||
IDShop: int32(constdata.SHOP_ID),
|
||||
@@ -50,6 +51,7 @@ func (r *ProductDescriptionRepo) CreateIfDoesNotExist(productID uint, productid_
|
||||
}
|
||||
|
||||
err := db.Get().
|
||||
Model(dbmodel.PsProductLang{}).
|
||||
Where(&dbmodel.PsProductLang{
|
||||
IDProduct: int32(productID),
|
||||
IDShop: int32(constdata.SHOP_ID),
|
||||
|
||||
Reference in New Issue
Block a user