From b4715f396173fb7f1eb4380896d9845a7f90453e Mon Sep 17 00:00:00 2001 From: Le Date: Tue, 5 Dec 2023 15:25:07 -0800 Subject: [PATCH] ofmcc-405 - update getNotifications query to only include emails with statecode equals to 1 (Completed) --- backend/src/components/notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/components/notification.js b/backend/src/components/notification.js index 4430f17b..199e0968 100644 --- a/backend/src/components/notification.js +++ b/backend/src/components/notification.js @@ -10,7 +10,7 @@ async function getNotifications(req, res) { const operation = 'emails?$select=description,lastopenedtime,subject,createdon,ofm_is_read&$expand=email_activity_parties($filter=(_partyid_value eq ' + req.params.contactId + - '))&$filter=(email_activity_parties/any(o1:(o1/_partyid_value eq ' + + '))&$filter=(statecode eq 1) and (email_activity_parties/any(o1:(o1/_partyid_value eq ' + req.params.contactId + ')))' log.debug('operation: ', operation)