From 14023ad185dd49c92a3dd83e02e65bbb761c8a25 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 6 Jun 2024 18:01:34 +0200 Subject: traewelling pull sync requires user_name to be set --- lib/Travelynx/Model/Traewelling.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Travelynx') diff --git a/lib/Travelynx/Model/Traewelling.pm b/lib/Travelynx/Model/Traewelling.pm index 25648cc..8ed35e5 100644 --- a/lib/Travelynx/Model/Traewelling.pm +++ b/lib/Travelynx/Model/Traewelling.pm @@ -235,7 +235,10 @@ sub get_pull_accounts { my $res = $self->{pg}->db->select( 'traewelling', [ 'user_id', 'token', 'data' ], - { pull_sync => 1 } + { + pull_sync => 1, + user_name => { '!=', undef }, + } ); return $res->expand->hashes->each; } -- cgit v1.2.3