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; }