Linting
parent
f3c5f9bc0c
commit
c129586336
|
@ -3,7 +3,6 @@ import type { NextApiRequest } from "next";
|
||||||
import { defaultResponder } from "@calcom/lib/server";
|
import { defaultResponder } from "@calcom/lib/server";
|
||||||
|
|
||||||
import { membershipIdSchema } from "~/lib/validations/membership";
|
import { membershipIdSchema } from "~/lib/validations/membership";
|
||||||
import { schemaQueryIdAsString } from "~/lib/validations/shared/queryIdString";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @swagger
|
* @swagger
|
||||||
|
|
|
@ -46,7 +46,7 @@ import {
|
||||||
* description: Authorization information is missing or invalid.
|
* description: Authorization information is missing or invalid.
|
||||||
*/
|
*/
|
||||||
export async function patchHandler(req: NextApiRequest) {
|
export async function patchHandler(req: NextApiRequest) {
|
||||||
const { prisma, query, userId, isAdmin } = req;
|
const { prisma, query, isAdmin } = req;
|
||||||
const userId_integration_externalId = selectedCalendarIdSchema.parse(query);
|
const userId_integration_externalId = selectedCalendarIdSchema.parse(query);
|
||||||
const { userId: bodyUserId, ...data } = schemaSelectedCalendarUpdateBodyParams.parse(req.body);
|
const { userId: bodyUserId, ...data } = schemaSelectedCalendarUpdateBodyParams.parse(req.body);
|
||||||
const args: Prisma.SelectedCalendarUpdateArgs = { where: { userId_integration_externalId }, data };
|
const args: Prisma.SelectedCalendarUpdateArgs = { where: { userId_integration_externalId }, data };
|
||||||
|
|
Loading…
Reference in New Issue