Pass userId while creating event-type (#2599)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/2674/head
Afzal Sayed 2022-04-28 19:26:10 +05:30 committed by Omar López
parent 6999ab09b6
commit 938f4f2b4d
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ export const eventTypesRouter = createProtectedRouter()
const data: Prisma.EventTypeCreateInput = {
...rest,
userId: teamId ? undefined : userId,
users: {
connect: {
id: userId,