Pass userId while creating event-type (#2599)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Afzal Sayedandkodiakhq[bot] authored and GitHub committed 2022-04-28 07:56:10 -06:00
1 parent f274c0bde3
commit 99666440cf
1 file changed
+1
@@ -117,6 +117,7 @@ export const eventTypesRouter = createProtectedRouter()
const data: Prisma.EventTypeCreateInput = {
...rest,
userId: teamId ? undefined : userId,
users: {
connect: {
id: userId,