fix: correct document tab count for pending and completed (#855)

completed/pending status gets incremented once if sender is one of the
recipients

fixes #853
This commit is contained in:
Sumit Bisht
2024-01-25 05:59:04 +05:30
committed by GitHub
parent 11dd93451a
commit ee0af566a9

View File

@ -42,6 +42,11 @@ export const getStats = async ({ user }: GetStatsInput) => {
_all: true,
},
where: {
User: {
email: {
not: user.email,
},
},
OR: [
{
status: ExtendedDocumentStatus.PENDING,