From 4ead66acbda8e685df2b74134726e1a8be8d3431 Mon Sep 17 00:00:00 2001 From: suk-6 Date: Thu, 26 Sep 2024 20:40:32 +0900 Subject: [PATCH] refactor: Update product price calculation in ProductService --- src/modules/product/product.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/product/product.service.ts b/src/modules/product/product.service.ts index 171270b..f243db3 100644 --- a/src/modules/product/product.service.ts +++ b/src/modules/product/product.service.ts @@ -30,7 +30,7 @@ export class ProductService { ) { this.getProducts('FUNDING').then((products) => { products.forEach((product) => { - this.updateProductPrice(product.id); + this.updateProductPrice(product.id).then(() => console.log(`${product.id} updated price`)); }); }); }