work: Fix travelynx->Traewelling sync when several users are checked in

I made a derp
This commit is contained in:
Daniel Friesel 2020-10-19 19:33:40 +02:00
parent f31fdb62d8
commit dc7bc5a5f4

View file

@ -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 );