fix: exclude rejected documents from inbox count (#2893)

This commit is contained in:
Rana Pratap Sarangi
2026-06-09 06:19:18 +05:30
committed by GitHub
parent 583e35c768
commit 5f4e0ccf6b
@@ -22,7 +22,7 @@ export const getInboxCountRoute = authenticatedProcedure
envelope: {
type: EnvelopeType.DOCUMENT,
status: {
not: DocumentStatus.DRAFT,
notIn: [DocumentStatus.DRAFT, DocumentStatus.REJECTED],
},
deletedAt: null,
},