diff --git a/pages/api/api-keys/[id]/_auth-middleware.ts b/pages/api/api-keys/[id]/_auth-middleware.ts index 3137ccad25..fb1c917485 100644 --- a/pages/api/api-keys/[id]/_auth-middleware.ts +++ b/pages/api/api-keys/[id]/_auth-middleware.ts @@ -2,7 +2,7 @@ import type { NextApiRequest } from "next"; import { HttpError } from "@calcom/lib/http-error"; -import { schemaQueryIdAsString } from "@lib/validations/shared/queryIdString"; +import { schemaQueryIdAsString } from "~/lib/validations/shared/queryIdString"; export async function authMiddleware(req: NextApiRequest) { const { userId, isAdmin, prisma } = req; diff --git a/pages/api/api-keys/[id]/_delete.ts b/pages/api/api-keys/[id]/_delete.ts index 8f298e4401..099c6ba7b1 100644 --- a/pages/api/api-keys/[id]/_delete.ts +++ b/pages/api/api-keys/[id]/_delete.ts @@ -2,7 +2,7 @@ import type { NextApiRequest } from "next"; import { defaultResponder } from "@calcom/lib/server"; -import { schemaQueryIdAsString } from "@lib/validations/shared/queryIdString"; +import { schemaQueryIdAsString } from "~/lib/validations/shared/queryIdString"; async function deleteHandler(req: NextApiRequest) { const { prisma, query } = req; diff --git a/pages/api/api-keys/[id]/_get.ts b/pages/api/api-keys/[id]/_get.ts index 36bf06d309..99b1188507 100644 --- a/pages/api/api-keys/[id]/_get.ts +++ b/pages/api/api-keys/[id]/_get.ts @@ -2,8 +2,8 @@ import type { NextApiRequest } from "next"; import { defaultResponder } from "@calcom/lib/server"; -import { apiKeyPublicSchema } from "@lib/validations/api-key"; -import { schemaQueryIdAsString } from "@lib/validations/shared/queryIdString"; +import { apiKeyPublicSchema } from "~/lib/validations/api-key"; +import { schemaQueryIdAsString } from "~/lib/validations/shared/queryIdString"; async function getHandler(req: NextApiRequest) { const { prisma, query } = req; diff --git a/pages/api/api-keys/[id]/_patch.ts b/pages/api/api-keys/[id]/_patch.ts index 8603fe69b8..673a081f54 100644 --- a/pages/api/api-keys/[id]/_patch.ts +++ b/pages/api/api-keys/[id]/_patch.ts @@ -2,8 +2,8 @@ import type { NextApiRequest } from "next"; import { defaultResponder } from "@calcom/lib/server"; -import { apiKeyEditBodySchema, apiKeyPublicSchema } from "@lib/validations/api-key"; -import { schemaQueryIdAsString } from "@lib/validations/shared/queryIdString"; +import { apiKeyEditBodySchema, apiKeyPublicSchema } from "~/lib/validations/api-key"; +import { schemaQueryIdAsString } from "~/lib/validations/shared/queryIdString"; async function patchHandler(req: NextApiRequest) { const { prisma, body } = req; diff --git a/pages/api/api-keys/[id]/index.ts b/pages/api/api-keys/[id]/index.ts index a69e97191f..4b27553002 100644 --- a/pages/api/api-keys/[id]/index.ts +++ b/pages/api/api-keys/[id]/index.ts @@ -2,7 +2,7 @@ import { NextApiRequest, NextApiResponse } from "next"; import { defaultHandler, defaultResponder } from "@calcom/lib/server"; -import { withMiddleware } from "@lib/helpers/withMiddleware"; +import { withMiddleware } from "~/lib/helpers/withMiddleware"; import { authMiddleware } from "./_auth-middleware"; diff --git a/pages/api/api-keys/_get.ts b/pages/api/api-keys/_get.ts index 930dac9234..3d374b51ec 100644 --- a/pages/api/api-keys/_get.ts +++ b/pages/api/api-keys/_get.ts @@ -4,8 +4,8 @@ import type { NextApiRequest } from "next"; import { defaultResponder } from "@calcom/lib/server"; import { Ensure } from "@calcom/types/utils"; -import { apiKeyPublicSchema } from "@lib/validations/api-key"; -import { schemaQuerySingleOrMultipleUserIds } from "@lib/validations/shared/queryUserId"; +import { apiKeyPublicSchema } from "~/lib/validations/api-key"; +import { schemaQuerySingleOrMultipleUserIds } from "~/lib/validations/shared/queryUserId"; type CustomNextApiRequest = NextApiRequest & { args?: Prisma.ApiKeyFindManyArgs; diff --git a/pages/api/api-keys/_post.ts b/pages/api/api-keys/_post.ts index 61dd7ce9a9..8329ac0df5 100644 --- a/pages/api/api-keys/_post.ts +++ b/pages/api/api-keys/_post.ts @@ -6,7 +6,7 @@ import { generateUniqueAPIKey } from "@calcom/features/ee/api-keys/lib/apiKeys"; import { HttpError } from "@calcom/lib/http-error"; import { defaultResponder } from "@calcom/lib/server"; -import { apiKeyCreateBodySchema, apiKeyPublicSchema } from "@lib/validations/api-key"; +import { apiKeyCreateBodySchema, apiKeyPublicSchema } from "~/lib/validations/api-key"; async function postHandler(req: NextApiRequest) { const { userId, isAdmin, prisma } = req; diff --git a/pages/api/api-keys/index.ts b/pages/api/api-keys/index.ts index c07846423f..0737e056fb 100644 --- a/pages/api/api-keys/index.ts +++ b/pages/api/api-keys/index.ts @@ -1,6 +1,6 @@ import { defaultHandler } from "@calcom/lib/server"; -import { withMiddleware } from "@lib/helpers/withMiddleware"; +import { withMiddleware } from "~/lib/helpers/withMiddleware"; export default withMiddleware("HTTP_GET_OR_POST")( defaultHandler({