From a5cbe319d0b42f3797b38051c890ac9633c804da Mon Sep 17 00:00:00 2001 From: Levin Herr Date: Sat, 1 Jun 2024 14:04:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20only=20dispatch=20stopover=20ref?= =?UTF-8?q?resh=20after=20response=20has=20been=20sent=20(#2638)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Backend/Transport/TrainCheckinController.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Backend/Transport/TrainCheckinController.php b/app/Http/Controllers/Backend/Transport/TrainCheckinController.php index e213f7ae2..963c66573 100644 --- a/app/Http/Controllers/Backend/Transport/TrainCheckinController.php +++ b/app/Http/Controllers/Backend/Transport/TrainCheckinController.php @@ -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; }