Skip to content

Commit bfad0b5

Browse files
committed
Bugfix
1 parent b19e527 commit bfad0b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

includes/Services/ApiStatusService.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
class ApiStatusService {
88

9-
109
public function __construct(
1110
private readonly ApiStatus $api_status
1211
) { }
@@ -16,10 +15,9 @@ public function __construct(
1615
*/
1716
public function get_data(): array {
1817
$response = $this->api_status->get();
19-
$result = $response->get();
2018

2119
return array(
22-
'status' => $result['status'] ?? 'ok',
20+
'status' => $response->get()['message'] ?? 'ko',
2321
'info' => $this->api_status->get_client()->get_service()->info(),
2422
);
2523
}

0 commit comments

Comments
 (0)