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: {
|
include: {
|
||||||
ownedOrganisations: {
|
ownedOrganisations: {
|
||||||
include: {
|
include: {
|
||||||
teams: true,
|
teams: {
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -49,7 +53,7 @@ export const handleDocumentOwnershipOnDeletion = async ({
|
|||||||
in: documentIds,
|
in: documentIds,
|
||||||
},
|
},
|
||||||
status: {
|
status: {
|
||||||
not: DocumentStatus.DRAFT,
|
in: [DocumentStatus.PENDING, DocumentStatus.REJECTED, DocumentStatus.COMPLETED],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
@ -65,7 +69,7 @@ export const handleDocumentOwnershipOnDeletion = async ({
|
|||||||
in: documentIds,
|
in: documentIds,
|
||||||
},
|
},
|
||||||
status: {
|
status: {
|
||||||
not: DocumentStatus.DRAFT,
|
in: [DocumentStatus.PENDING, DocumentStatus.REJECTED, DocumentStatus.COMPLETED],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
Reference in New Issue
Block a user