Import fixes

pull/9078/head
zomars 2022-12-08 16:28:28 -07:00
parent 8b74f463f4
commit f3c5f9bc0c
8 changed files with 11 additions and 11 deletions

View File

@ -2,7 +2,7 @@ import type { NextApiRequest } from "next";
import { HttpError } from "@calcom/lib/http-error"; 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) { export async function authMiddleware(req: NextApiRequest) {
const { userId, isAdmin, prisma } = req; const { userId, isAdmin, prisma } = req;

View File

@ -2,7 +2,7 @@ import type { NextApiRequest } from "next";
import { defaultResponder } from "@calcom/lib/server"; 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) { async function deleteHandler(req: NextApiRequest) {
const { prisma, query } = req; const { prisma, query } = req;

View File

@ -2,8 +2,8 @@ import type { NextApiRequest } from "next";
import { defaultResponder } from "@calcom/lib/server"; import { defaultResponder } from "@calcom/lib/server";
import { apiKeyPublicSchema } from "@lib/validations/api-key"; import { apiKeyPublicSchema } from "~/lib/validations/api-key";
import { schemaQueryIdAsString } from "@lib/validations/shared/queryIdString"; import { schemaQueryIdAsString } from "~/lib/validations/shared/queryIdString";
async function getHandler(req: NextApiRequest) { async function getHandler(req: NextApiRequest) {
const { prisma, query } = req; const { prisma, query } = req;

View File

@ -2,8 +2,8 @@ import type { NextApiRequest } from "next";
import { defaultResponder } from "@calcom/lib/server"; import { defaultResponder } from "@calcom/lib/server";
import { apiKeyEditBodySchema, apiKeyPublicSchema } from "@lib/validations/api-key"; import { apiKeyEditBodySchema, apiKeyPublicSchema } from "~/lib/validations/api-key";
import { schemaQueryIdAsString } from "@lib/validations/shared/queryIdString"; import { schemaQueryIdAsString } from "~/lib/validations/shared/queryIdString";
async function patchHandler(req: NextApiRequest) { async function patchHandler(req: NextApiRequest) {
const { prisma, body } = req; const { prisma, body } = req;

View File

@ -2,7 +2,7 @@ import { NextApiRequest, NextApiResponse } from "next";
import { defaultHandler, defaultResponder } from "@calcom/lib/server"; import { defaultHandler, defaultResponder } from "@calcom/lib/server";
import { withMiddleware } from "@lib/helpers/withMiddleware"; import { withMiddleware } from "~/lib/helpers/withMiddleware";
import { authMiddleware } from "./_auth-middleware"; import { authMiddleware } from "./_auth-middleware";

View File

@ -4,8 +4,8 @@ import type { NextApiRequest } from "next";
import { defaultResponder } from "@calcom/lib/server"; import { defaultResponder } from "@calcom/lib/server";
import { Ensure } from "@calcom/types/utils"; import { Ensure } from "@calcom/types/utils";
import { apiKeyPublicSchema } from "@lib/validations/api-key"; import { apiKeyPublicSchema } from "~/lib/validations/api-key";
import { schemaQuerySingleOrMultipleUserIds } from "@lib/validations/shared/queryUserId"; import { schemaQuerySingleOrMultipleUserIds } from "~/lib/validations/shared/queryUserId";
type CustomNextApiRequest = NextApiRequest & { type CustomNextApiRequest = NextApiRequest & {
args?: Prisma.ApiKeyFindManyArgs; args?: Prisma.ApiKeyFindManyArgs;

View File

@ -6,7 +6,7 @@ import { generateUniqueAPIKey } from "@calcom/features/ee/api-keys/lib/apiKeys";
import { HttpError } from "@calcom/lib/http-error"; import { HttpError } from "@calcom/lib/http-error";
import { defaultResponder } from "@calcom/lib/server"; 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) { async function postHandler(req: NextApiRequest) {
const { userId, isAdmin, prisma } = req; const { userId, isAdmin, prisma } = req;

View File

@ -1,6 +1,6 @@
import { defaultHandler } from "@calcom/lib/server"; 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")( export default withMiddleware("HTTP_GET_OR_POST")(
defaultHandler({ defaultHandler({