diff --git a/packages/lib/server-only/document/handle-document-ownership-on-deletion.ts b/packages/lib/server-only/document/handle-document-ownership-on-deletion.ts index 7371addcb..ef42ab87c 100644 --- a/packages/lib/server-only/document/handle-document-ownership-on-deletion.ts +++ b/packages/lib/server-only/document/handle-document-ownership-on-deletion.ts @@ -31,9 +31,11 @@ export const handleDocumentOwnershipOnDeletion = async ({ where: { id: organisationOwnerId, }, - include: { + select: { + id: true, ownedOrganisations: { - include: { + select: { + id: true, teams: { select: { id: true,