Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: jamal-khey <[email protected]>
  • Loading branch information
jamal-khey committed Nov 6, 2023
1 parent 7120e35 commit 1bf5492
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ protected ModificationEntity(ModificationInfos modificationInfos) {
}
//We need to limit the precision to avoid database precision storage limit issue (postgres has a precision of 6 digits while h2 can go to 9)
this.date = ZonedDateTime.now(ZoneOffset.UTC).truncatedTo(ChronoUnit.MICROS);
this.stashed = modificationInfos.getStashed();
assignAttributes(modificationInfos);
}

Expand All @@ -93,7 +94,6 @@ public void update(ModificationInfos modificationInfos) {

@SneakyThrows
private void assignAttributes(ModificationInfos modificationInfos) {
this.stashed = modificationInfos.getStashed();
this.setType(modificationInfos.getType().name());
this.setMessageType(modificationInfos.getType().name());
this.setMessageValues(new ObjectMapper().writeValueAsString(modificationInfos.getMapMessageValues()));
Expand Down

0 comments on commit 1bf5492

Please sign in to comment.