Skip to content

Commit

Permalink
Merge pull request #81 from webitel/v24.04
Browse files Browse the repository at this point in the history
V24.04
  • Loading branch information
dlohvinov authored Jun 7, 2024
2 parents 45403f8 + 2cb92a3 commit a64fd6d
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/modules/contacts/api/ContactsAPI.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
import { getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults';
import applyTransform, {
log,
merge,
starToSearch,
camelToSnake,
snakeToCamel,

merge,
notify,
sanitize,
snakeToCamel,
} from '@webitel/ui-sdk/src/api/transformers';
import {
getDefaultGetParams,
} from '@webitel/ui-sdk/src/api/defaults';
import { ContactsApiFactory } from 'webitel-sdk';
import getDefaultGetListResponse
from '../../../app/api/defaults/getDefaultGetListResponse';
import configuration from '../../../app/api/openAPIConfig';
import instance from '../../../app/api/instance';
import configuration from '../../../app/api/openAPIConfig';
import SearchMode from '../modules/filters/enums/SearchMode.enum';

const service = new ContactsApiFactory(configuration, '', instance);
Expand Down Expand Up @@ -64,7 +59,7 @@ const getList = async (params) => {

// This code needed for adding starToSearch method to applyTransform while searchKey !== SearchMode.VARIABLES because '*' in variables search mode brokes backend logic.
if (searchKey !== SearchMode.VARIABLES) {
transformations.push(starToSearch('q'));
// transformations.push(starToSearch('q')); WTEL-4265
}

const {
Expand Down

0 comments on commit a64fd6d

Please sign in to comment.