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,