From d50d83ad7c429e20c841debdaf17140ca49ba437 Mon Sep 17 00:00:00 2001 From: Dmytro Svyrydenko Date: Sat, 20 Jan 2024 19:50:10 +0200 Subject: [PATCH] chore: Move transfer unlinking to separate folder --- src/controllers/transactions.controller/index.ts | 2 +- .../{ => transfer-linking}/unlink-transfer-transactions.e2e.ts | 0 .../{ => transfer-linking}/unlink-transfer-transactions.ts | 1 - src/services/transactions/index.ts | 2 +- .../{ => transactions-linking}/unlink-transfer-transactions.ts | 0 5 files changed, 2 insertions(+), 3 deletions(-) rename src/controllers/transactions.controller/{ => transfer-linking}/unlink-transfer-transactions.e2e.ts (100%) rename src/controllers/transactions.controller/{ => transfer-linking}/unlink-transfer-transactions.ts (97%) rename src/services/transactions/{ => transactions-linking}/unlink-transfer-transactions.ts (100%) diff --git a/src/controllers/transactions.controller/index.ts b/src/controllers/transactions.controller/index.ts index e3e163a8..c200411e 100644 --- a/src/controllers/transactions.controller/index.ts +++ b/src/controllers/transactions.controller/index.ts @@ -2,4 +2,4 @@ export * from './create-transaction'; export * from './delete-transaction'; export * from './update-transaction'; -export * from './unlink-transfer-transactions'; +export * from './transfer-linking/unlink-transfer-transactions'; diff --git a/src/controllers/transactions.controller/unlink-transfer-transactions.e2e.ts b/src/controllers/transactions.controller/transfer-linking/unlink-transfer-transactions.e2e.ts similarity index 100% rename from src/controllers/transactions.controller/unlink-transfer-transactions.e2e.ts rename to src/controllers/transactions.controller/transfer-linking/unlink-transfer-transactions.e2e.ts diff --git a/src/controllers/transactions.controller/unlink-transfer-transactions.ts b/src/controllers/transactions.controller/transfer-linking/unlink-transfer-transactions.ts similarity index 97% rename from src/controllers/transactions.controller/unlink-transfer-transactions.ts rename to src/controllers/transactions.controller/transfer-linking/unlink-transfer-transactions.ts index c2ef399b..e9877110 100644 --- a/src/controllers/transactions.controller/unlink-transfer-transactions.ts +++ b/src/controllers/transactions.controller/transfer-linking/unlink-transfer-transactions.ts @@ -26,7 +26,6 @@ export const unlinkTransferTransactions = async (req, res: CustomResponse) => { .status(200) .json({ status: API_RESPONSE_STATUS.success, response: data }); } catch (err) { - console.log('ERR', err); errorHandler(res, err); } }; diff --git a/src/services/transactions/index.ts b/src/services/transactions/index.ts index f548db12..cdf1b216 100644 --- a/src/services/transactions/index.ts +++ b/src/services/transactions/index.ts @@ -5,4 +5,4 @@ export * from './get-transactions'; export * from './update-transaction'; export * from './get-by-transfer-id'; export * from './get-transaction-by-some-id'; -export * from './unlink-transfer-transactions'; +export * from './transactions-linking/unlink-transfer-transactions'; diff --git a/src/services/transactions/unlink-transfer-transactions.ts b/src/services/transactions/transactions-linking/unlink-transfer-transactions.ts similarity index 100% rename from src/services/transactions/unlink-transfer-transactions.ts rename to src/services/transactions/transactions-linking/unlink-transfer-transactions.ts