Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Cancelled Cards from Schedule Page Meetings #1857

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading