Skip to content

Commit 8f11def

Browse files
committed
feature: Update event type constants in InstKdiHendelseService for improved clarity and consistency #deploy-test-dolly-backend
1 parent 3fca3b4 commit 8f11def

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/instdata/service/InstKdiHendelseService.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
@RequiredArgsConstructor
2121
public class InstKdiHendelseService {
2222

23-
private static final String INNSETTELSE = "A";
24-
private static final String AVBRUDD_START = "B";
25-
private static final String AVBRUDD_SLUTT = "C";
26-
private static final String LOESLATELSE = "D";
27-
private static final String FORVENTET_LOESLATELSE = "E";
23+
private static final String INNSETTELSE = "AAA";
24+
private static final String AVBRUDD_START = "BBB";
25+
private static final String AVBRUDD_SLUTT = "CCC";
26+
private static final String LOESLATELSE = "DDD";
27+
private static final String FORVENTET_LOESLATELSE = "EEE";
2828

2929
private final TransactionHelperService transactionHelperService;
3030

@@ -76,6 +76,6 @@ private static void oppdaterHendelser(List<? extends RsInstdataKdi.Hendelse> hen
7676

7777
private static String makeHendelseId(Long bestillingId, String type, Integer loepenummer) {
7878

79-
return "0x%010d00000%s00%010d".formatted(bestillingId, type, loepenummer);
79+
return "0x%08d0%3s%08d0%3s%04d".formatted(bestillingId, type, bestillingId, type, loepenummer);
8080
}
8181
}

0 commit comments

Comments
 (0)