Merge branch 'refactor/issue-14' of github.com:srindom/medusa into refactor/issue-14

This commit is contained in:
olivermrbl
2020-03-10 11:44:37 +01:00
@@ -249,7 +249,7 @@ class ProductVariantService extends BaseService {
const region = await this.regionService_.retrieve(regionId)
// If prices already exist we need to update all prices with the same currency
if (variant.prices.length) {
if (varint.prices.length) {
let foundRegion = false
const newPrices = variant.prices.map(moneyAmount => {
if (moneyAmount.region_id === region._id) {