Add publishHandler user.id (#8703)

pull/8681/head^2
Alex van Andel 2023-05-05 17:36:33 +02:00 committed by GitHub
parent be79b8ecd6
commit 446f384405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@ import { isTeamAdmin } from "@calcom/lib/server/queries/teams";
import { closeComUpdateTeam } from "@calcom/lib/sync/SyncServiceManager"; import { closeComUpdateTeam } from "@calcom/lib/sync/SyncServiceManager";
import { prisma } from "@calcom/prisma"; import { prisma } from "@calcom/prisma";
import { teamMetadataSchema } from "@calcom/prisma/zod-utils"; import { teamMetadataSchema } from "@calcom/prisma/zod-utils";
import type { TrpcSessionUser } from "@calcom/trpc/server/trpc";
import { TRPCError } from "@trpc/server"; import { TRPCError } from "@trpc/server";
@ -13,7 +12,7 @@ import type { TPublishInputSchema } from "./publish.schema";
type PublishOptions = { type PublishOptions = {
ctx: { ctx: {
user: NonNullable<TrpcSessionUser>; user: NonNullable<{ id: number }>;
}; };
input: TPublishInputSchema; input: TPublishInputSchema;
}; };