From bdab891c6d3eaba2d0d334cb18ecbf08d7788b62 Mon Sep 17 00:00:00 2001 From: Ram Krishna Singh Date: Sat, 24 Aug 2024 12:07:20 +0530 Subject: [PATCH] stores account output api data in remote_data --- packages/api/src/ticketing/account/services/front/mappers.ts | 1 + packages/api/src/ticketing/account/services/zendesk/mappers.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/api/src/ticketing/account/services/front/mappers.ts b/packages/api/src/ticketing/account/services/front/mappers.ts index ba545a04d..c467955c8 100644 --- a/packages/api/src/ticketing/account/services/front/mappers.ts +++ b/packages/api/src/ticketing/account/services/front/mappers.ts @@ -63,6 +63,7 @@ export class FrontAccountMapper implements IAccountMapper { name: account.name, domains: account.domains.flat(), field_mappings: field_mappings, + remote_data: account }; return unifiedAccount; diff --git a/packages/api/src/ticketing/account/services/zendesk/mappers.ts b/packages/api/src/ticketing/account/services/zendesk/mappers.ts index d4e128d80..5f40bfd32 100644 --- a/packages/api/src/ticketing/account/services/zendesk/mappers.ts +++ b/packages/api/src/ticketing/account/services/zendesk/mappers.ts @@ -60,6 +60,7 @@ export class ZendeskAccountMapper implements IAccountMapper { remote_id: String(account.id), name: account.name, domains: account.domain_names, + remote_data: account }; return unifiedAccount;