Commit e7f740c Bingjie Liu
committed
1 parent 949e369 commit e7f740c Copy full SHA for e7f740c
File tree 1 file changed +5
-5
lines changed
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ class GetLicenceConditionService(
15
15
val personResponse = getPersonService.execute(hmppsId = hmppsId)
16
16
val crn = personResponse.data?.identifiers?.deliusCrn
17
17
18
- var licenses : Response <List <Licence >> = Response (data = emptyList())
18
+ var licences : Response <List <Licence >> = Response (data = emptyList())
19
19
20
20
if (crn != null ) {
21
- licenses = createAndVaryLicenceGateway.getLicenceSummaries(id = crn)
22
- licenses .data.forEach {
21
+ licences = createAndVaryLicenceGateway.getLicenceSummaries(id = crn)
22
+ licences .data.forEach {
23
23
val conditions = createAndVaryLicenceGateway.getLicenceConditions(it.id)
24
24
it.conditions = conditions.data
25
25
}
26
26
}
27
27
28
28
return Response (
29
- data = licenses .data,
30
- errors = personResponse.errors + licenses .errors,
29
+ data = licences .data,
30
+ errors = personResponse.errors + licences .errors,
31
31
)
32
32
}
33
33
}
You can’t perform that action at this time.
0 commit comments