From 6ad39771355d6110e58c4ac221c14c28a82d4f0d Mon Sep 17 00:00:00 2001 From: PHAM HOANG HUNG Date: Fri, 6 Sep 2024 16:04:32 +0700 Subject: [PATCH] fix sonar --- marketplace-ui/src/app/modules/product/product.service.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/marketplace-ui/src/app/modules/product/product.service.ts b/marketplace-ui/src/app/modules/product/product.service.ts index a7fd27fa7..86318c9e3 100644 --- a/marketplace-ui/src/app/modules/product/product.service.ts +++ b/marketplace-ui/src/app/modules/product/product.service.ts @@ -78,10 +78,11 @@ export class ProductService { sendRequestToUpdateInstallationCount(productId: string, designerVersion: string) { const url = 'api/product-details/installationcount/' + productId; - return this.httpClient.put(url, null, { + const options = { headers: { 'X-Requested-By': 'ivy' }, - params: { designerVersion: designerVersion } - }); + params: { 'designerVersion': designerVersion } + }; + return this.httpClient.put(url, null, options); } sendRequestToGetProductVersionsForDesigner(productId: string) {