fix: Regression: Can’t set person to forward OOO bookings (#15003)
This commit is contained in:
1 parent
2dae0bfb8c
commit
56f31eee7a
1 file changed
+8
-2
@@ -53,8 +53,14 @@ export const outOfOfficeCreate = async ({ ctx, input }: TBookingRedirect) => {
|
||||
/** You can only create OOO for members of teams you belong to */
|
||||
teams: {
|
||||
some: {
|
||||
userId: ctx.user.id,
|
||||
accepted: true,
|
||||
team: {
|
||||
members: {
|
||||
some: {
|
||||
userId: ctx.user.id,
|
||||
accepted: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user