From 99666440cfc6b0bd05bcab73bddba531155c5e98 Mon Sep 17 00:00:00 2001 From: Afzal Sayed <14029371+afzalsayed96@users.noreply.github.com> Date: Thu, 28 Apr 2022 19:26:10 +0530 Subject: [PATCH] Pass userId while creating event-type (#2599) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- apps/web/server/routers/viewer/eventTypes.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/server/routers/viewer/eventTypes.tsx b/apps/web/server/routers/viewer/eventTypes.tsx index 48c3d04de4..7fc2d80d12 100644 --- a/apps/web/server/routers/viewer/eventTypes.tsx +++ b/apps/web/server/routers/viewer/eventTypes.tsx @@ -117,6 +117,7 @@ export const eventTypesRouter = createProtectedRouter() const data: Prisma.EventTypeCreateInput = { ...rest, + userId: teamId ? undefined : userId, users: { connect: { id: userId,