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

CVSL-2107 Tidying up vary approval caseload #1058

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

andrewrlee
Copy link
Contributor

No description provided.

const comUsernames = caseload
.map(
offender =>
offender.licences.find(l => offender.licences.length === 1 || l.status !== LicenceStatus.ACTIVE).comUsername
Copy link
Contributor Author

@andrewrlee andrewrlee Aug 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The queries are always limited to return VARIATION_SUBMITTED so no need to check status.

There should only ever be one of these per noms id so I've created an assertion that ensures there's no duplicates. (Checked prod and this is the case)

@andrewrlee andrewrlee enabled auto-merge (squash) September 3, 2024 09:48
@andrewrlee andrewrlee disabled auto-merge September 3, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants