From dc7bc5a5f437a31afe1d0b47e3955a9299af9d0a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 19 Oct 2020 19:33:40 +0200 Subject: work: Fix travelynx->Traewelling sync when several users are checked in I made a derp --- lib/Travelynx/Command/work.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index a43a5b9..6bbf0ff 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -273,13 +273,13 @@ sub run { "Fehler bei $candidate->{train_type} $candidate->{train_no}: Keine trip_id vorhanden", is_error => 1 ); - return; + next; } if ( $candidate->{data}{latest_push_ts} and $candidate->{data}{latest_push_ts} == $candidate->{checkin_ts} ) { $self->app->log->debug("... already handled"); - return; + next; } $self->app->traewelling_api->checkin( %{$candidate}, trip_id => $trip_id ); -- cgit v1.2.3