From 6948c2e4ee11d0ba44d2382b569abd63a4737fd6 Mon Sep 17 00:00:00 2001 From: Bryann Yeap Kok Keong Date: Sat, 22 Oct 2022 16:25:26 +0800 Subject: [PATCH] [offers][refactor] Rename currency exchanger file to follow camelCase --- apps/portal/src/pages/offers/test/generateAnalysis.tsx | 2 +- apps/portal/src/pages/offers/test/getAnalysis.tsx | 2 +- apps/portal/src/server/router/offers/offers-profile-router.ts | 2 +- apps/portal/src/server/router/offers/offers.ts | 2 +- .../currency/{currency-exchange.ts => currencyExchange.ts} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename apps/portal/src/utils/offers/currency/{currency-exchange.ts => currencyExchange.ts} (100%) diff --git a/apps/portal/src/pages/offers/test/generateAnalysis.tsx b/apps/portal/src/pages/offers/test/generateAnalysis.tsx index 029ab5fe..87c4cfbb 100644 --- a/apps/portal/src/pages/offers/test/generateAnalysis.tsx +++ b/apps/portal/src/pages/offers/test/generateAnalysis.tsx @@ -8,7 +8,7 @@ function GenerateAnalysis() { return (
{JSON.stringify( - analysisMutation.mutate({ profileId: 'cl9j50xzk008vutfqg6mta2ey' }), + analysisMutation.mutate({ profileId: 'cl9jj2ks1001li9fn9np47wjr' }), )}
); diff --git a/apps/portal/src/pages/offers/test/getAnalysis.tsx b/apps/portal/src/pages/offers/test/getAnalysis.tsx index 477ee183..8ad7bff0 100644 --- a/apps/portal/src/pages/offers/test/getAnalysis.tsx +++ b/apps/portal/src/pages/offers/test/getAnalysis.tsx @@ -5,7 +5,7 @@ import { trpc } from '~/utils/trpc'; function GetAnalysis() { const analysis = trpc.useQuery([ 'offers.analysis.get', - { profileId: 'cl9j50xzk008vutfqg6mta2ey' }, + { profileId: 'cl9jj2ks1001li9fn9np47wjr' }, ]); return
{JSON.stringify(analysis.data)}
; diff --git a/apps/portal/src/server/router/offers/offers-profile-router.ts b/apps/portal/src/server/router/offers/offers-profile-router.ts index 8ce57731..104cdf95 100644 --- a/apps/portal/src/server/router/offers/offers-profile-router.ts +++ b/apps/portal/src/server/router/offers/offers-profile-router.ts @@ -9,7 +9,7 @@ import { profileDtoMapper, } from '~/mappers/offers-mappers'; import { baseCurrencyString } from '~/utils/offers/currency'; -import { convert } from '~/utils/offers/currency/currency-exchange'; +import { convert } from '~/utils/offers/currency/currencyExchange'; import { createValidationRegex } from '~/utils/offers/zodRegex'; import { createRouter } from '../context'; diff --git a/apps/portal/src/server/router/offers/offers.ts b/apps/portal/src/server/router/offers/offers.ts index 284063e9..8b2321e6 100644 --- a/apps/portal/src/server/router/offers/offers.ts +++ b/apps/portal/src/server/router/offers/offers.ts @@ -5,7 +5,7 @@ import { dashboardOfferDtoMapper, getOffersResponseMapper, } from '~/mappers/offers-mappers'; -import { convertWithDate } from '~/utils/offers/currency/currency-exchange'; +import { convertWithDate } from '~/utils/offers/currency/currencyExchange'; import { Currency } from '~/utils/offers/currency/CurrencyEnum'; import { createValidationRegex } from '~/utils/offers/zodRegex'; diff --git a/apps/portal/src/utils/offers/currency/currency-exchange.ts b/apps/portal/src/utils/offers/currency/currencyExchange.ts similarity index 100% rename from apps/portal/src/utils/offers/currency/currency-exchange.ts rename to apps/portal/src/utils/offers/currency/currencyExchange.ts