diff --git a/packages/modules/product/src/services/product-module-service.ts b/packages/modules/product/src/services/product-module-service.ts index 65004be44b129..5ce5ba0be40ad 100644 --- a/packages/modules/product/src/services/product-module-service.ts +++ b/packages/modules/product/src/services/product-module-service.ts @@ -1168,9 +1168,12 @@ export default class ProductModuleService< ): Promise { const normalizedInput = await promiseAll( data.map(async (d) => { - await this.normalizeCreateProductInput(d, sharedContext) - this.validateProductPayload(d) - return d + const normalized = await this.normalizeCreateProductInput( + d, + sharedContext + ) + this.validateProductPayload(normalized) + return normalized }) ) @@ -1228,9 +1231,12 @@ export default class ProductModuleService< ): Promise { const normalizedInput = await promiseAll( data.map(async (d) => { - await this.normalizeUpdateProductInput(d, sharedContext) - this.validateProductPayload(d) - return d + const normalized = await this.normalizeUpdateProductInput( + d, + sharedContext + ) + this.validateProductPayload(normalized) + return normalized }) )