Skip to content

Commit

Permalink
PI-2443: Changed order (#4182)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcphee77 authored Aug 19, 2024
1 parent ab59d2e commit 85c822a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ data class Offence(
val offenceCount: Long?,
val tics: Long?,
val verdict: String?,
val offenderId: Long,
val offenderId: Long?,
val createdDatetime: LocalDateTime,
val lastUpdatedDatetime: LocalDateTime,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ConvictionService(
disposal?.custody?.toCustody(),
court?.toCourt(),
toLatestOrSentencingCourtAppearanceOf(),
orderManagers.map { it.toOrderManager() }
orderManagers.stream().map { it.toOrderManager() }.toList()
)

fun Event.toOffences(): List<Offence> {
Expand Down Expand Up @@ -122,7 +122,7 @@ class ConvictionService(
offenceCount = offenceCount,
tics = null,
verdict = null,
offenderId = event.person.id,
offenderId = null,
createdDatetime = created.toLocalDateTime(),
lastUpdatedDatetime = updated.toLocalDateTime()
)
Expand Down

0 comments on commit 85c822a

Please sign in to comment.