feat: wip
This commit is contained in:
@@ -22,6 +22,24 @@ export const setRecipientsForDocument = async ({
|
||||
where: {
|
||||
id: documentId,
|
||||
userId,
|
||||
OR: [
|
||||
{
|
||||
team: {
|
||||
is: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
team: {
|
||||
is: {
|
||||
members: {
|
||||
some: {
|
||||
userId,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user