Fix version verify.

This commit is contained in:
James Cole
2019-11-01 05:51:25 +01:00
parent c4256dd25b
commit a4906a2d21
2 changed files with 4 additions and 3 deletions

View File

@@ -24,4 +24,5 @@ script:
# enable experimental features.
- echo $TRAVIS_DIST
- echo $ARCH_VERS
- .deploy/docker/build-$ARCH.sh
- .deploy/docker/build-$ARCH.sh
- docker build -t jc5x/firefly-iii:develop-arm64 -f Dockerfile.arm64 .

View File

@@ -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];
}
}