Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
p-janik committed Nov 4, 2024
1 parent 4da86fa commit 7b2c7a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/accountOpeningRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 7b2c7a6

Please sign in to comment.