From 7b2c7a62a5394259f642ea7cd5e6b9b30585e49f Mon Sep 17 00:00:00 2001 From: Pawel Janik Date: Mon, 4 Nov 2024 11:33:56 +0200 Subject: [PATCH] Fix lint --- src/routes/accountOpeningRequest.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/accountOpeningRequest.ts b/src/routes/accountOpeningRequest.ts index 9729f92eb4..558ab0bf3c 100644 --- a/src/routes/accountOpeningRequest.ts +++ b/src/routes/accountOpeningRequest.ts @@ -25,7 +25,7 @@ import { triggerWebhook } from "../helpers/webhooks"; import generateID from "../helpers/id"; import { createAccount } from "../routes/accounts"; -const AccountOpeningMap = { +const ACCOUNT_OPENING_MAP = { getEntity: { [CustomerType.PERSON]: getPerson, [CustomerType.BUSINESS]: getBusiness, @@ -47,9 +47,9 @@ export const createAccountOpeningRequest = async ( const data = req.body; const entityId = data.customer_id; const customerType = data.customer_type as CustomerType; - const getEntity = AccountOpeningMap.getEntity[data.customer_type]; - const saveEntity = AccountOpeningMap.saveEntity[data.customer_type]; - const accountType = AccountOpeningMap.accountType[data.customer_type]; + const getEntity = ACCOUNT_OPENING_MAP.getEntity[data.customer_type]; + const saveEntity = ACCOUNT_OPENING_MAP.saveEntity[data.customer_type]; + const accountType = ACCOUNT_OPENING_MAP.accountType[data.customer_type]; const accountOpeningRequest = { customer_id: data.customer_id,