Skip to content

Commit db912b7

Browse files
committed
update to value on IEvent
1 parent 5d7a74d commit db912b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Oak.Webhooks/Events/Implementations/DynamicWebhookEventHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public DynamicWebhookEventHandler(IWebhookClientFactory webhookClientFactory)
2121

2222
public Task HandleEventAsync(OnPostEmitEvent args)
2323
{
24-
if (args.EmittedEvent.GetType() != typeof(IWebhookEvent<>))
24+
if (args.Value.GetType() != typeof(IWebhookEvent<>))
2525
return Task.CompletedTask;
2626

2727
var url = (string)args.GetType()?.GetProperty("Url")?.GetValue(args);

0 commit comments

Comments
 (0)