Update run-javascript-plugin with updated property name
This commit is contained in:
parent
39b8c4b343
commit
6374aa643b
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
@ -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'];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue