We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f54ac commit d241969Copy full SHA for d241969
app/Http/Controllers/Api/V1/SiteController.php
@@ -40,7 +40,7 @@ public function register(Request $request): JsonResponse
40
41
// Do a health check
42
try {
43
- $connectionService->checkHealth();
+ $healthResponse = $connectionService->checkHealth();
44
} catch (ServerException $e) {
45
return $this->error($e->getMessage(), 500);
46
} catch (ClientException|\Exception $e) {
@@ -52,6 +52,7 @@ public function register(Request $request): JsonResponse
52
53
$site->key = $key;
54
$site->url = $url;
55
+ $site->fill($healthResponse->toArray());
56
57
$site->save();
58
0 commit comments