From 9dc5d26380db07ce8cb4d1c3a98dada09a70c07a Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 11 Aug 2024 10:31:06 +0200 Subject: DBDB: It's $tx->res->code --- lib/Travelynx/Helper/DBDB.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Travelynx/Helper/DBDB.pm b/lib/Travelynx/Helper/DBDB.pm index c7c9d4c..82cdc72 100644 --- a/lib/Travelynx/Helper/DBDB.pm +++ b/lib/Travelynx/Helper/DBDB.pm @@ -72,7 +72,7 @@ sub has_wagonorder_p { $promise->resolve('a'); } else { - my $code = $tx->code; + my $code = $tx->res->code; $self->{log}->debug("${debug_prefix}: n (HTTP $code)"); $cache->set( "HEAD $url", 'n' ); $promise->reject; @@ -132,7 +132,7 @@ sub get_wagonorder_p { $promise->resolve($json); } else { - my $code = $tx->code; + my $code = $tx->res->code; $self->{log}->debug("${debug_prefix}: HTTP ${code}"); $promise->reject("HTTP ${code}"); } -- cgit v1.2.3