Skip to content

Commit

Permalink
Merge pull request #52 from bcgov/ofmcc-405-not-display-draft-notific…
Browse files Browse the repository at this point in the history
…ations

ofmcc-405 - update getNotifications query to only include emails with statecode equals to 1 (Completed)
  • Loading branch information
vietle-cgi authored Dec 6, 2023
2 parents 3ee32de + b4715f3 commit fd06834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/components/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd06834

Please sign in to comment.