Skip to content

Commit

Permalink
Remove cancelled cards from schedule page meetings
Browse files Browse the repository at this point in the history
  • Loading branch information
Abradat committed Sep 16, 2024
1 parent 5156fcd commit 27f19e0
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 27f19e0

Please sign in to comment.