diff --git a/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java b/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java index 6b4868f2b62..3d5917d9df6 100644 --- a/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java +++ b/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java @@ -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 @@ -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());