Add publishHandler user.id (#8703)
parent
be79b8ecd6
commit
446f384405
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue