fix(java-spring): correct version author when changes exist. Fix Bug 73505

This commit is contained in:
sshakndr
2025-03-17 14:39:50 +07:00
parent ec0e2e1b4a
commit a5d98055ce

View File

@ -123,7 +123,10 @@ public class DefaultHistoryManager implements HistoryManager {
History changes = objectMapper.readValue(changesSteam, History.class);
List<Object> historyChanges = changes.getChanges();
Map<String, Object> historyChange = objectMapper.convertValue(historyChanges.get(0), Map.class);
Map<String, Object> historyChange = objectMapper.convertValue(
historyChanges.get(historyChanges.size() - 1),
Map.class
);
// write information about changes to the object
version.setChanges(changes.getChanges());