From 6374aa643b428df1768516a7fbb91205d4b52c27 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Tue, 23 Mar 2021 20:09:59 +0100 Subject: [PATCH] Update run-javascript-plugin with updated property name --- .../Webhooks/Converters/TelnyxWebhookDataJsonConverter.cs | 2 +- .../elsa-workflows-studio/src/plugins/run-javascript-plugin.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/activities/Elsa.Activities.Telnyx/Webhooks/Converters/TelnyxWebhookDataJsonConverter.cs b/src/activities/Elsa.Activities.Telnyx/Webhooks/Converters/TelnyxWebhookDataJsonConverter.cs index e7e680e71..8eb576383 100644 --- a/src/activities/Elsa.Activities.Telnyx/Webhooks/Converters/TelnyxWebhookDataJsonConverter.cs +++ b/src/activities/Elsa.Activities.Telnyx/Webhooks/Converters/TelnyxWebhookDataJsonConverter.cs @@ -48,6 +48,6 @@ namespace Elsa.Activities.Telnyx.Webhooks.Converters } - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) => throw new NotImplementedException(); + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) => throw new NotImplementedException(); } } \ No newline at end of file diff --git a/src/designer/elsa-workflows-studio/src/plugins/run-javascript-plugin.tsx b/src/designer/elsa-workflows-studio/src/plugins/run-javascript-plugin.tsx index 8834f2d6b..fe2d740fc 100644 --- a/src/designer/elsa-workflows-studio/src/plugins/run-javascript-plugin.tsx +++ b/src/designer/elsa-workflows-studio/src/plugins/run-javascript-plugin.tsx @@ -16,7 +16,7 @@ export class RunJavascriptPlugin implements ElsaPlugin { return; const props = activityModel.properties || []; - const outcomes = props.find(x => x.name == 'Outcomes') || { expression: '' }; + const outcomes = props.find(x => x.name == 'PossibleOutcomes') || { expression: '' }; const expression = outcomes.expression; context.outcomes = parseJson(expression) || ['Done'];