mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
fix: exclude soft-deleted documents from folder count (#2410)
This commit is contained in:
@@ -66,12 +66,14 @@ export const findFoldersInternal = async ({
|
||||
where: {
|
||||
type: EnvelopeType.DOCUMENT,
|
||||
folderId: folder.id,
|
||||
deletedAt: null,
|
||||
},
|
||||
}),
|
||||
prisma.envelope.count({
|
||||
where: {
|
||||
type: EnvelopeType.TEMPLATE,
|
||||
folderId: folder.id,
|
||||
deletedAt: null,
|
||||
},
|
||||
}),
|
||||
prisma.folder.count({
|
||||
|
||||
Reference in New Issue
Block a user