Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Jan 17, 2020
1 parent 4c3ff3b commit 842c9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/CronMiddlewareEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(string $timeZone = null)
public function handle(ScheduleEnvelope $envelope, StackInterface $stack): ScheduleEnvelope
{
if (!$stamp = $envelope->get(ScheduleStamp::class)) {
$stack->next()->handle($envelope, $stack);
return $stack->next()->handle($envelope, $stack);
}

if (CronExpression::factory($stamp->cronExpression())->isDue('now', $this->timeZone)) {
Expand Down

0 comments on commit 842c9d0

Please sign in to comment.