mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 01:32:06 +10:00
chore: refactor find documents
This commit is contained in:
committed by
Mythie
parent
2837b178fb
commit
754e9e6428
@ -137,6 +137,15 @@ const handleDocumentOwnerRestore = async ({
|
||||
}),
|
||||
});
|
||||
|
||||
await tx.recipient.updateMany({
|
||||
where: {
|
||||
documentId: document.id,
|
||||
},
|
||||
data: {
|
||||
documentDeletedAt: null,
|
||||
},
|
||||
});
|
||||
|
||||
return await tx.document.update({
|
||||
where: {
|
||||
id: document.id,
|
||||
|
||||
Reference in New Issue
Block a user