Improve version handling.

This commit is contained in:
James Cole
2019-10-30 20:02:38 +01:00
parent 9a028d5002
commit cbc92d89e1
6 changed files with 25 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ class UpdateRequest implements UpdateRequestInterface
*/
public function getVersion(string $channel): array
{
$uri = 'https://version.firefly-iii.org/index.json';
$uri = config('firefly.update_endpoint');
Log::debug(sprintf('Going to call %s', $uri));
try {
$client = new Client();

View File

@@ -31,7 +31,7 @@ interface UpdateRequestInterface
/**
* @param string $channel
*
* @return string
* @return array
* @throws FireflyException
*/
public function getVersion(string $channel): array;