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

Editing the type of ID we need to pull upstream from String to Int #430

Merged
merged 3 commits into from
May 22, 2024

Conversation

chiaramapellimt
Copy link
Contributor

No description provided.

it.conditions = conditions.data
} else {
it.conditions = emptyList()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Possible refactor for readability if you wanted:

val licences = createAndVaryLicenceGateway.getLicenceSummaries(id = crn) licences.data.forEach { summary -> summary.conditions = summary.id.toIntOrNull()?.let { licenceId -> createAndVaryLicenceGateway.getLicenceConditions(licenceId).data } ?: emptyList() }

@popey2700 popey2700 merged commit e914607 into main May 22, 2024
5 checks passed
@popey2700 popey2700 deleted the licences-bug branch May 22, 2024 10:22
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