adamsaghy commented on code in PR #3803:
URL: https://github.com/apache/fineract/pull/3803#discussion_r1537645969


##########
fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java:
##########
@@ -272,6 +272,11 @@ private void publishHookEvent(final String entityName, 
final String actionName,
                 Type type = new TypeToken<Map<String, Object>>() {
 
                 }.getType();
+
+                if (!isValidJson(command.json(), type)) {

Review Comment:
   This way we can avoid double json conversion



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to