From 799529b23a04efcfaf039e1d55fea848b160259c Mon Sep 17 00:00:00 2001 From: Rajesh Jonnalagadda Date: Thu, 6 Jun 2024 14:48:56 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Minor=20api=20key=20value=20issu?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit change the key expected value to vlaue --- packages/api/src/crm/deal/services/close/mappers.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/api/src/crm/deal/services/close/mappers.ts b/packages/api/src/crm/deal/services/close/mappers.ts index e37f2d5eb..2fd716778 100644 --- a/packages/api/src/crm/deal/services/close/mappers.ts +++ b/packages/api/src/crm/deal/services/close/mappers.ts @@ -91,7 +91,6 @@ export class CloseDealMapper implements IDealMapper { } } - let opts: any = {}; if (deal.user_id) { const owner_id = await this.utils.getUserUuidFromRemoteId( @@ -133,7 +132,7 @@ export class CloseDealMapper implements IDealMapper { remote_id: deal.id, name: deal.note, description: deal.note, // Placeholder if there's no direct mapping - amount: parseFloat(`${deal.expected_value || 0}`), + amount: parseFloat(`${deal.value || 0}`), //TODO; stage_id: deal.properties.dealstage, field_mappings, ...opts,