Skip to content

Commit

Permalink
Merge pull request #1857 from bcgov/hotfix/ALCS-2249
Browse files Browse the repository at this point in the history
Remove Cancelled Cards from Schedule Page Meetings
  • Loading branch information
Abradat authored Sep 16, 2024
2 parents 5156fcd + 27f19e0 commit 79f9bef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ export class ApplicationDecisionMeetingService {
.innerJoin('meeting.application', 'application')
.innerJoin('application.reconsiderations', 'reconsideration')
.innerJoin('reconsideration.card', 'card')
.where(`card.status_code != '${CARD_STATUS.DECISION_RELEASED}'`)
.where('card.status_code NOT IN (:...values)', {
values: [CARD_STATUS.DECISION_RELEASED, CARD_STATUS.CANCELLED],
})
.groupBy('reconsideration.uuid')
.getRawMany();
}
Expand All @@ -168,7 +170,9 @@ export class ApplicationDecisionMeetingService {
)
.innerJoin('meeting.application', 'application')
.innerJoin('application.card', 'card')
.where(`card.status_code != '${CARD_STATUS.DECISION_RELEASED}'`)
.where('card.status_code NOT IN (:...values)', {
values: [CARD_STATUS.DECISION_RELEASED, CARD_STATUS.CANCELLED],
})
.groupBy('application.uuid')
.getRawMany();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export class PlanningReviewMeetingService {
.innerJoin('meeting.planningReview', 'planningReview')
.innerJoin('planningReview.referrals', 'referrals')
.innerJoin('referrals.card', 'card')
.where(`card.status_code != '${CARD_STATUS.DECISION_RELEASED}'`)
.where('card.status_code NOT IN (:...values)', {
values: [CARD_STATUS.DECISION_RELEASED, CARD_STATUS.CANCELLED],
})
.groupBy('planningReview.uuid')
.getRawMany();
}
Expand Down

0 comments on commit 79f9bef

Please sign in to comment.