mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
chore: don't return more than necessary
This commit is contained in:
@ -34,7 +34,11 @@ export const handleDocumentOwnershipOnDeletion = async ({
|
||||
include: {
|
||||
ownedOrganisations: {
|
||||
include: {
|
||||
teams: true,
|
||||
teams: {
|
||||
select: {
|
||||
id: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -49,7 +53,7 @@ export const handleDocumentOwnershipOnDeletion = async ({
|
||||
in: documentIds,
|
||||
},
|
||||
status: {
|
||||
not: DocumentStatus.DRAFT,
|
||||
in: [DocumentStatus.PENDING, DocumentStatus.REJECTED, DocumentStatus.COMPLETED],
|
||||
},
|
||||
},
|
||||
data: {
|
||||
@ -65,7 +69,7 @@ export const handleDocumentOwnershipOnDeletion = async ({
|
||||
in: documentIds,
|
||||
},
|
||||
status: {
|
||||
not: DocumentStatus.DRAFT,
|
||||
in: [DocumentStatus.PENDING, DocumentStatus.REJECTED, DocumentStatus.COMPLETED],
|
||||
},
|
||||
},
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user