Skip to content
Snippets Groups Projects
Verified Commit abc23b2b authored by Damien's avatar Damien
Browse files

VersionsUpdate without internet

parent 51d53f3f
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,11 @@ class VersionUpdateController
}
$client = new Client('https://labs.maarch.org/api/v4/');
$tags = $client->api('tags')->all('12');
try {
$tags = $client->api('tags')->all('12');
} catch (\Exception $e) {
return $response->withJson(['errors' => $e->getMessage()]);
}
$parameter = ParameterModel::getById(['select' => ['param_value_string'], 'id' => 'database_version']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment