Fix Telnyx bookmarks
This commit is contained in:
parent
757a2f566f
commit
f9291adaad
|
|
@ -4,7 +4,7 @@ using Elsa.Bookmarks;
|
|||
|
||||
namespace Elsa.Activities.Telnyx.Providers.Bookmarks
|
||||
{
|
||||
public record NotificationBookmark(string EventType, string? CorrelationId = default) : IBookmark
|
||||
public record NotificationBookmark(string EventType) : IBookmark
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -20,8 +20,7 @@ namespace Elsa.Activities.Telnyx.Providers.Bookmarks
|
|||
{
|
||||
var activityType = context.ActivityType;
|
||||
var eventType = (string) activityType.Attributes[NotificationActivityTypeProvider.EventTypeAttribute];
|
||||
var correlationId = context.ActivityExecutionContext.WorkflowExecutionContext.CorrelationId;
|
||||
return new[] { Result(new NotificationBookmark(eventType, correlationId)) };
|
||||
return new[] {Result(new NotificationBookmark(eventType))};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -40,7 +40,7 @@ namespace Elsa.Activities.Telnyx.Webhooks.Handlers
|
|||
}
|
||||
|
||||
var correlationId = GetCorrelationId(payload);
|
||||
var bookmark = new NotificationBookmark(eventType, correlationId);
|
||||
var bookmark = new NotificationBookmark(eventType);
|
||||
var trigger = new NotificationBookmark(eventType);
|
||||
var context = new CollectWorkflowsContext(activityType, bookmark, trigger, correlationId);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue