Showing
1 changed file
with
1 additions
and
1 deletions
@@ -51,7 +51,7 @@ module.exports = (req, res, next) => { | @@ -51,7 +51,7 @@ module.exports = (req, res, next) => { | ||
51 | shopsId: currentShop.shopsId, | 51 | shopsId: currentShop.shopsId, |
52 | shopId: currentShop.shopsId, | 52 | shopId: currentShop.shopsId, |
53 | shop: currentShop.shopsId, | 53 | shop: currentShop.shopsId, |
54 | - supplierId: currentShop.shopsBrands.length ? _.first(currentShop.shopsBrands).supplierId : 0, | 54 | + supplierId: currentShop.shopsBrands.length ? (req.user.supplier_id ? req.user.supplier_id : _.first(currentShop.shopsBrands).supplierId) : 0, |
55 | platform_id: config.platform, | 55 | platform_id: config.platform, |
56 | userId: req.user.uid | 56 | userId: req.user.uid |
57 | }; | 57 | }; |
-
Please register or login to post a comment