chore: return minimal data

This commit is contained in:
Catalin Pit
2025-09-01 14:20:15 +03:00
parent c97c2551db
commit 5e8c3d5d92

View File

@ -31,9 +31,11 @@ export const handleDocumentOwnershipOnDeletion = async ({
where: { where: {
id: organisationOwnerId, id: organisationOwnerId,
}, },
include: { select: {
id: true,
ownedOrganisations: { ownedOrganisations: {
include: { select: {
id: true,
teams: { teams: {
select: { select: {
id: true, id: true,