From a4906a2d2173dd1551398f4cdcad224ae147b388 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 1 Nov 2019 05:51:25 +0100 Subject: [PATCH] Fix version verify. --- .travis.yml | 3 ++- app/Services/FireflyIIIOrg/Update/UpdateRequest.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2a3a63433f..70988e0de3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,4 +24,5 @@ script: # enable experimental features. - echo $TRAVIS_DIST - echo $ARCH_VERS - - .deploy/docker/build-$ARCH.sh \ No newline at end of file + - .deploy/docker/build-$ARCH.sh + - docker build -t jc5x/firefly-iii:develop-arm64 -f Dockerfile.arm64 . \ No newline at end of file diff --git a/app/Services/FireflyIIIOrg/Update/UpdateRequest.php b/app/Services/FireflyIIIOrg/Update/UpdateRequest.php index 75e28e8cd9..08dc85a6fb 100644 --- a/app/Services/FireflyIIIOrg/Update/UpdateRequest.php +++ b/app/Services/FireflyIIIOrg/Update/UpdateRequest.php @@ -61,10 +61,10 @@ class UpdateRequest implements UpdateRequestInterface throw new FireflyException('Invalid JSON in server response.'); } - if (!isset($json[$channel])) { + if (!isset($json['firefly_iii'][$channel])) { throw new FireflyException(sprintf('Unknown update channel "%s"', $channel)); } - return $json[$channel]; + return $json['firefly_iii'][$channel]; } } \ No newline at end of file