From 07266fe92f86e47ad07d259f8651cebb5f57fba6 Mon Sep 17 00:00:00 2001 From: Lera24 Date: Wed, 26 Jun 2024 15:29:27 +0300 Subject: [PATCH] fix: error in saving communications[WTEL-4620] --- src/modules/contacts/modules/emails/api/EmailsAPI.js | 2 ++ src/modules/contacts/modules/phones/api/PhonesAPI.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/modules/contacts/modules/emails/api/EmailsAPI.js b/src/modules/contacts/modules/emails/api/EmailsAPI.js index 67ad21a..4edb344 100644 --- a/src/modules/contacts/modules/emails/api/EmailsAPI.js +++ b/src/modules/contacts/modules/emails/api/EmailsAPI.js @@ -63,10 +63,12 @@ const getList = async (params) => { }; const get = async ({ itemId, parentId }) => { + const fields = ['email', 'primary', 'etag', 'type']; try { const response = await service.locateEmail( parentId, itemId, + fields, ); return applyTransform(response.data, [ snakeToCamel(), diff --git a/src/modules/contacts/modules/phones/api/PhonesAPI.js b/src/modules/contacts/modules/phones/api/PhonesAPI.js index f68bf0f..b00a2da 100644 --- a/src/modules/contacts/modules/phones/api/PhonesAPI.js +++ b/src/modules/contacts/modules/phones/api/PhonesAPI.js @@ -64,10 +64,12 @@ const getList = async (params) => { }; const get = async ({ itemId, parentId }) => { + const fields = ['number', 'primary', 'etag', 'type']; try { const response = await service.locatePhone( parentId, itemId, + fields, ); return applyTransform(response.data, [ snakeToCamel(),