@@ -171,7 +171,7 @@ type CatalogProductOutcome struct {
|
||||
func UpsertCatalogShopeeProduct(q Execer, in CatalogShopeeProductInput) (out CatalogProductOutcome, err error) {
|
||||
var oldObserved, oldShopID, imageURL, shopName, imageSource, imageObserved, shopSource, shopObserved sql.NullString
|
||||
var imageManual, shopManual int
|
||||
shopID, err := FindShopIDByAlias(q, "shopee", in.ShopName)
|
||||
shopID, err := FindShopIDByName(q, in.ShopName)
|
||||
if err != nil {
|
||||
return out, err
|
||||
}
|
||||
@@ -232,7 +232,7 @@ func UpsertCatalogShopeeProduct(q Execer, in CatalogShopeeProductInput) (out Cat
|
||||
resolvedShopID := oldShopID.String
|
||||
shopAssociationChanged := false
|
||||
if shopChanged {
|
||||
resolvedShopID, err = FindShopIDByAlias(q, "shopee", newShop)
|
||||
resolvedShopID, err = FindShopIDByName(q, newShop)
|
||||
if err != nil {
|
||||
return out, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user