Pass userId while creating event-type (#2599)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>pull/2674/head
parent
6999ab09b6
commit
938f4f2b4d
|
@ -117,6 +117,7 @@ export const eventTypesRouter = createProtectedRouter()
|
||||||
|
|
||||||
const data: Prisma.EventTypeCreateInput = {
|
const data: Prisma.EventTypeCreateInput = {
|
||||||
...rest,
|
...rest,
|
||||||
|
userId: teamId ? undefined : userId,
|
||||||
users: {
|
users: {
|
||||||
connect: {
|
connect: {
|
||||||
id: userId,
|
id: userId,
|
||||||
|
|
Loading…
Reference in New Issue