Skip to content

Commit

Permalink
fix(core): FlowWithPollingTrigger.from should check on PollingTrigger (
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu authored Sep 15, 2023
1 parent 52d4bf2 commit e85f697
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ private static class FlowWithPollingTrigger {
public FlowWithPollingTrigger from(Flow flow) throws InternalException {
AbstractTrigger abstractTrigger = flow.getTriggers()
.stream()
.filter(a -> a.getId().equals(this.trigger.getId()))
.filter(a -> a.getId().equals(this.trigger.getId()) && a instanceof PollingTriggerInterface)
.findFirst()
.orElseThrow(() -> new InternalException("Couldn't find the trigger '" + this.trigger.getId() + "' on flow '" + flow.uid() + "'"));

Expand Down

0 comments on commit e85f697

Please sign in to comment.