diff options
Diffstat (limited to 'lib/DBInfoscreen/Helper')
-rw-r--r-- | lib/DBInfoscreen/Helper/Marudor.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Helper/Marudor.pm b/lib/DBInfoscreen/Helper/Marudor.pm index dce22cf..0f08c46 100644 --- a/lib/DBInfoscreen/Helper/Marudor.pm +++ b/lib/DBInfoscreen/Helper/Marudor.pm @@ -92,8 +92,9 @@ sub get_efa_occupancy { sub { my ($utilization_json) = @_; - if ( $utilization_json->{$train_no}{occupancy} ) { - $promise->resolve( $utilization_json->{$train_no}{occupancy} ); + if ( $utilization_json->{train}{$train_no}{occupancy} ) { + $promise->resolve( + $utilization_json->{train}{$train_no}{occupancy} ); return; } $promise->reject; |