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 Sayed
2022-04-28 07:56:10 -06:00
committed by GitHub
co-authored by kodiakhq[bot]
parent f274c0bde3
commit 99666440cf
@@ -117,6 +117,7 @@ export const eventTypesRouter = createProtectedRouter()
const data: Prisma.EventTypeCreateInput = {
...rest,
userId: teamId ? undefined : userId,
users: {
connect: {
id: userId,