Skip to content

Commit

Permalink
refactor function name and folder
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Nov 21, 2024
1 parent 2a95a63 commit 7c50bb9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
11 changes: 11 additions & 0 deletions lib/utils/api/fetchAcqUnitsByIds.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ACQUISITIONS_UNITS_API } from '../../constants';
import { fetchExportDataByIds } from '../fetchExportDataByIds';

export const fetchAcqUnitsByIds = (ky) => async (acquisitionUnitIds) => {
return fetchExportDataByIds({
api: ACQUISITIONS_UNITS_API,
ids: acquisitionUnitIds,
ky,
records: 'acquisitionsUnits',
});
};
1 change: 1 addition & 0 deletions lib/utils/api/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { fetchAcqUnitsByIds } from './fetchAcqUnitsByIds';
export { fetchOrderLines } from './fetchOrderLines';
export { fetchOrderLinesByIds } from './fetchOrderLinesByIds';
export { fetchOrders } from './fetchOrders';
Expand Down
11 changes: 0 additions & 11 deletions lib/utils/getAcqUnitsByIds.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export * from './filterSelectValues';
export * from './formatDate';
export * from './formatDateTime';
export * from './generateQueryTemplate';
export * from './getAcqUnitsByIds';
export * from './getAcqUnitsOptions';
export * from './getAddresses';
export * from './getAddressOptions';
Expand Down

0 comments on commit 7c50bb9

Please sign in to comment.