Skip to content

Commit 626cc89

Browse files
committed
feature: amp-151 alpha sort event types in database
* i.e. PCR, CUSTODIAL_RESULT is stored as CUSTODIAL_RESULT, PCR
1 parent d8e1ce7 commit 626cc89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/uk/gov/hmcts/cp/mappers/SubscriptionMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public interface SubscriptionMapper {
2828

2929
@Named("sortedEventTypes")
3030
static List<EntityEventType> sortedEventTypes(final List<EventType> events) {
31-
List<String> sorted = events.stream().map(e -> e.name()).sorted().collect(toList());
31+
final List<String> sorted = events.stream().map(e -> e.name()).sorted().collect(toList());
3232
return sorted.stream().map(e -> EntityEventType.valueOf(e)).toList();
3333
}
3434

0 commit comments

Comments
 (0)