Skip to content

Commit

Permalink
FINERACT-2106: fix the misuse of ToApiJsonSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyad2003 authored and adamsaghy committed Sep 5, 2024
1 parent 24c83b5 commit 367ff0f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public CommandProcessingResult executeCommand(final CommandWrapper wrapper, fina

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
Expand Down Expand Up @@ -318,7 +318,7 @@ protected void publishHookEvent(final String entityName, final String actionName

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());
Expand Down

0 comments on commit 367ff0f

Please sign in to comment.