Browse Source

fix(server): Return translated options from updateProductVariants()

Michael Bromley 7 years ago
parent
commit
b88f54d705
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/src/service/product.service.ts

+ 1 - 1
server/src/service/product.service.ts

@@ -102,7 +102,7 @@ export class ProductService {
             .getRepository(ProductVariant)
             .findByIds(updateProductVariants.map(v => v.id), { relations: ['options'] })
             .then(variants => {
-                return variants.map(v => translateDeep(v, DEFAULT_LANGUAGE_CODE));
+                return variants.map(v => translateDeep(v, DEFAULT_LANGUAGE_CODE, ['options']));
             });
     }