FINERACT-2106: fix the misuse of ToApiJsonSerializer

This commit is contained in:
zeyad2003
2024-09-05 18:10:10 +01:00
committed by Adam Saghy
parent 24c83b5f9f
commit 367ff0fd96
@@ -147,7 +147,7 @@ public class SynchronousCommandProcessingService implements CommandProcessingSer
commandSource.setResultStatusCode(SC_OK);
commandSource.updateForAudit(result);
commandSource.setResult(toApiJsonSerializer.serializeResult(result));
commandSource.setResult(toApiResultJsonSerializer.serializeResult(result));
commandSource.setStatus(PROCESSED.getValue());
commandSource = commandSourceService.saveResultSameTransaction(commandSource);
storeCommandIdInContext(commandSource); // Store command id as a request attribute
@@ -318,7 +318,7 @@ public class SynchronousCommandProcessingService implements CommandProcessingSer
reqmap.put("timestamp", Instant.now().toString());
final String serializedResult = toApiResultJsonSerializer.serialize(reqmap);
final String serializedResult = toApiJsonSerializer.serialize(reqmap);
final HookEvent applicationEvent = new HookEvent(hookEventSource, serializedResult, appUser,
ThreadLocalContextUtil.getContext());