From 94b60cf3ec5787732a7ec0be5600a48e6e3a2bb5 Mon Sep 17 00:00:00 2001 From: Melvin Chia Date: Fri, 15 Aug 2025 23:12:54 +0800 Subject: [PATCH] refactor: Update Location import paths for consistency across routes Former-commit-id: b5286cd0182a34d6842a4beb2bc4c1d374faf3de [formerly b0726525061d4aaed9df78eedaad8419aa3a2c5e] [formerly 6b340de48cc3182342576dab112680a7a40a7a56 [formerly 3dfbc7e6860c7d89f8b0ea3d71a13caba0dabc40]] Former-commit-id: dee006c248328cab5951f1add2123880d6ca8c64 [formerly 2ca954406f9684742efdf05bd72c339c3935378a] Former-commit-id: 9f052ea35f57e9f94eb224ad9f09d3963f18110f --- server/src/apps/calendar/routes/events.ts | 2 +- server/src/apps/movies/routes/ticket.ts | 2 +- server/src/apps/wallet/routes/templates.ts | 2 +- server/src/apps/wallet/routes/transactions.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/apps/calendar/routes/events.ts b/server/src/apps/calendar/routes/events.ts index 64311aff8..ce0918fda 100644 --- a/server/src/apps/calendar/routes/events.ts +++ b/server/src/apps/calendar/routes/events.ts @@ -3,8 +3,8 @@ import { fetchAI } from '@functions/external/ai' import searchLocations from '@functions/external/location' import { forgeController, forgeRouter } from '@functions/routes' import { ClientError } from '@functions/routes/utils/response' +import { Location } from '@lib/locations/typescript/location.types' import { singleUploadMiddleware } from '@middlewares/uploadMiddleware' -import { Location } from '@typescript/location.types' import fs from 'fs' import moment from 'moment' import { z } from 'zod/v4' diff --git a/server/src/apps/movies/routes/ticket.ts b/server/src/apps/movies/routes/ticket.ts index feeb9a3c5..0a2f9ab04 100644 --- a/server/src/apps/movies/routes/ticket.ts +++ b/server/src/apps/movies/routes/ticket.ts @@ -1,6 +1,6 @@ import { forgeController, forgeRouter } from '@functions/routes' +import { Location } from '@lib/locations/typescript/location.types' import { SCHEMAS } from '@schema' -import { Location } from '@typescript/location.types' import { z } from 'zod/v4' const update = forgeController.mutation diff --git a/server/src/apps/wallet/routes/templates.ts b/server/src/apps/wallet/routes/templates.ts index 36251d23b..cc604e7f1 100644 --- a/server/src/apps/wallet/routes/templates.ts +++ b/server/src/apps/wallet/routes/templates.ts @@ -1,7 +1,7 @@ import { SchemaWithPB } from '@functions/database/PBService/typescript/pb_service' import { forgeController, forgeRouter } from '@functions/routes' +import { Location } from '@lib/locations/typescript/location.types' import COLLECTION_SCHEMAS from '@schema' -import { Location } from '@typescript/location.types' import { z } from 'zod/v4' const list = forgeController.query diff --git a/server/src/apps/wallet/routes/transactions.ts b/server/src/apps/wallet/routes/transactions.ts index 2dcb53593..f6e1fb633 100644 --- a/server/src/apps/wallet/routes/transactions.ts +++ b/server/src/apps/wallet/routes/transactions.ts @@ -1,7 +1,7 @@ import parseOCR from '@functions/external/ocr' import { forgeController, forgeRouter } from '@functions/routes' +import { Location } from '@lib/locations/typescript/location.types' import { SCHEMAS } from '@schema' -import { Location } from '@typescript/location.types' import fs from 'fs' import z from 'zod/v4' @@ -88,7 +88,7 @@ const CreateTransactionInputSchema = SCHEMAS.wallet.transactions type: z.literal('transfer') }) ]) -) + ) const create = forgeController.mutation .description('Create a new wallet transaction')