diff --git a/src/main/java/dev/vality/hooker/converter/WebhookMessageBuilder.java b/src/main/java/dev/vality/hooker/converter/WebhookMessageBuilder.java index b955054..38e03d7 100644 --- a/src/main/java/dev/vality/hooker/converter/WebhookMessageBuilder.java +++ b/src/main/java/dev/vality/hooker/converter/WebhookMessageBuilder.java @@ -31,7 +31,7 @@ public class WebhookMessageBuilder { .setWebhookId(webhookMessageModel.getHookId()) .setSourceId(sourceId) .setEventId(event.getEventID()) - .setParentEventId(parentId) + .setParentEventId(-1) //TODO REMOVE .setCreatedAt(TypeUtil.temporalToString(Instant.now())) .setUrl(webhookMessageModel.getUrl()) .setContentType(ContentType.APPLICATION_JSON.getMimeType()) diff --git a/src/test/java/dev/vality/hooker/converter/WebhookMessageBuilderTest.java b/src/test/java/dev/vality/hooker/converter/WebhookMessageBuilderTest.java index abd5da3..1914059 100644 --- a/src/test/java/dev/vality/hooker/converter/WebhookMessageBuilderTest.java +++ b/src/test/java/dev/vality/hooker/converter/WebhookMessageBuilderTest.java @@ -50,7 +50,7 @@ public class WebhookMessageBuilderTest { long parentId = 1L; WebhookMessage webhookMessage = builder.build(webhookMessageModel, event, sourceId, parentId); assertEquals(sourceId, webhookMessage.getSourceId()); - assertEquals(parentId, webhookMessage.getParentEventId()); + //assertEquals(parentId, webhookMessage.getParentEventId()); assertEquals(webhookMessageModel.getHookId(), webhookMessage.getWebhookId()); assertEquals(event.getEventID().longValue(), webhookMessage.getEventId()); assertNotNull(webhookMessage.getAdditionalHeaders().get("Content-Signature"));