Skip to content

Commit

Permalink
馃悰 only dispatch stopover refresh after response has been sent (#2638)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrLevin committed Jun 1, 2024
1 parent 72bbe8a commit a5cbe31
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,11 @@ public static function getHafasTrip(string $tripId, string $lineName, int $start
}

//try to refresh the departure time of the origin station
RefreshStopover::dispatchIf(
$originStopover && !str_starts_with($hafasTrip->trip_id, 'manual-'),
$originStopover
);
if ($originStopover && !str_starts_with($hafasTrip->trip_id, 'manual-')) {
RefreshStopover::dispatchAfterResponse(
$originStopover
);
}

return $hafasTrip;
}
Expand Down

0 comments on commit a5cbe31

Please sign in to comment.