diff --git a/duniter4j-es-subscription/src/main/java/org/duniter/elasticsearch/subscription/service/SubscriptionService.java b/duniter4j-es-subscription/src/main/java/org/duniter/elasticsearch/subscription/service/SubscriptionService.java index 4172e5bbd3bdc7274ff9c1423b0e5643f80daa80..d2b81923b829e156de97438a3a05551b6f19b5b8 100644 --- a/duniter4j-es-subscription/src/main/java/org/duniter/elasticsearch/subscription/service/SubscriptionService.java +++ b/duniter4j-es-subscription/src/main/java/org/duniter/elasticsearch/subscription/service/SubscriptionService.java @@ -439,8 +439,8 @@ public class SubscriptionService extends AbstractService { try { String json = getObjectMapper().writeValueAsString(record); if (cleanHashAndSignature) { - json = JacksonUtils.removeAttribute(json, Record.PROPERTY_SIGNATURE); - json = JacksonUtils.removeAttribute(json, Record.PROPERTY_HASH); + json = PARSER_SIGNATURE.removeFromJson(json); + json = PARSER_HASH.removeFromJson(json); } return json; } catch(JsonProcessingException e) {