This commit is contained in:
Birte Kristina Friesel 2024-06-06 19:40:59 +02:00
parent 14023ad185
commit c969424c2d
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA
2 changed files with 2 additions and 5 deletions

View file

@ -31,7 +31,7 @@ sub pull_sync {
}
if ( not defined $account_data->{data}{user_name} ) {
$self->app->log->error(
$self->app->log->debug(
"travelynx user $account_data->{user_id} has a Traewellig connection, but no username"
);
next;

View file

@ -235,10 +235,7 @@ sub get_pull_accounts {
my $res = $self->{pg}->db->select(
'traewelling',
[ 'user_id', 'token', 'data' ],
{
pull_sync => 1,
user_name => { '!=', undef },
}
{ pull_sync => 1 }
);
return $res->expand->hashes->each;
}