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-05-02 16:21:11 -06:00
committed by Omar López
co-authored by kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 6999ab09b6
commit 938f4f2b4d
@@ -117,6 +117,7 @@ export const eventTypesRouter = createProtectedRouter()
const data: Prisma.EventTypeCreateInput = {
...rest,
userId: teamId ? undefined : userId,
users: {
connect: {
id: userId,