mirror of
https://github.com/valitydev/hooker.git
synced 2024-11-06 00:05:17 +00:00
Fix parent id (#13)
Co-authored-by: Inal Arsanukaev <inalarsanukaev@192.168.1.4>
This commit is contained in:
parent
aa94a879bb
commit
f4a7eac666
@ -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())
|
||||
|
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user