From d4c76b1ba20d6d9b97ebe10f645260eeb6bf9731 Mon Sep 17 00:00:00 2001 From: nael Date: Fri, 3 May 2024 12:52:54 +0200 Subject: [PATCH] :green_heart: Fix api build --- packages/api/src/crm/contact/services/zoho/mappers.ts | 2 +- packages/api/src/crm/contact/services/zoho/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/crm/contact/services/zoho/mappers.ts b/packages/api/src/crm/contact/services/zoho/mappers.ts index 688fe4e74..b1c3319d1 100644 --- a/packages/api/src/crm/contact/services/zoho/mappers.ts +++ b/packages/api/src/crm/contact/services/zoho/mappers.ts @@ -126,7 +126,7 @@ export class ZohoContactMapper implements IContactMapper { }; return { - remote_id: contact.id, + remote_id: String(contact.id), first_name: contact.First_Name ? contact.First_Name : '', last_name: contact.Last_Name ? contact.Last_Name : '', email_addresses, diff --git a/packages/api/src/crm/contact/services/zoho/types.ts b/packages/api/src/crm/contact/services/zoho/types.ts index 8045145c5..dfbf59ff2 100644 --- a/packages/api/src/crm/contact/services/zoho/types.ts +++ b/packages/api/src/crm/contact/services/zoho/types.ts @@ -1,4 +1,5 @@ export interface ZohoContact { + id: string | number; Owner: { name: string; id: string; @@ -47,7 +48,6 @@ export interface ZohoContact { Other_Country: string; Description: string; Record_Image: string; - id: string; [key: string]: any; }