From c969424c2d27bd862354b29a43082ded885dc69f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 6 Jun 2024 19:40:59 +0200 Subject: ... derp --- lib/Travelynx/Command/traewelling.pm | 2 +- lib/Travelynx/Model/Traewelling.pm | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/Travelynx') 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; } -- cgit v1.2.3