diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-11 10:31:06 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-11 10:31:06 +0200 |
commit | 9dc5d26380db07ce8cb4d1c3a98dada09a70c07a (patch) | |
tree | 36db1070eb1e508912232bfd33a85af82a642d4b | |
parent | cecf3491d5dae134f28571911c779f81b64f32ff (diff) |
DBDB: It's $tx->res->code
-rw-r--r-- | lib/Travelynx/Helper/DBDB.pm | 4 |
1 files 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}"); } |