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:
@@ -42,6 +42,11 @@ export const getStats = async ({ user }: GetStatsInput) => {
|
|||||||
_all: true,
|
_all: true,
|
||||||
},
|
},
|
||||||
where: {
|
where: {
|
||||||
|
User: {
|
||||||
|
email: {
|
||||||
|
not: user.email,
|
||||||
|
},
|
||||||
|
},
|
||||||
OR: [
|
OR: [
|
||||||
{
|
{
|
||||||
status: ExtendedDocumentStatus.PENDING,
|
status: ExtendedDocumentStatus.PENDING,
|
||||||
|
|||||||
Reference in New Issue
Block a user