diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travelynx/Command/traewelling.pm | 2 | ||||
-rw-r--r-- | lib/Travelynx/Model/Traewelling.pm | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/Travelynx/Command/traewelling.pm b/lib/Travelynx/Command/traewelling.pm index 96fac49..8f62c2b 100644 --- a/lib/Travelynx/Command/traewelling.pm +++ b/lib/Travelynx/Command/traewelling.pm @@ -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; diff --git a/lib/Travelynx/Model/Traewelling.pm b/lib/Travelynx/Model/Traewelling.pm index 8ed35e5..25648cc 100644 --- a/lib/Travelynx/Model/Traewelling.pm +++ b/lib/Travelynx/Model/Traewelling.pm @@ -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; } |