Skip to content

Commit 13a3605

Browse files
authored
[Bugfix] Fixed failed indicator on latest result api (alexjustesen#700)
1 parent c1d5b6a commit 13a3605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/API/Speedtest/GetLatestController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __invoke(): JsonResponse
3535
'server_name' => $latest->server_name,
3636
'url' => $latest->url,
3737
'scheduled' => $latest->scheduled,
38-
'failed' => $latest->successful,
38+
'failed' => ! $latest->successful,
3939
'created_at' => $latest->created_at->toISOString(),
4040
'updated_at' => $latest->created_at->toISOString(), // faking updated at to match legacy api payload
4141
],

0 commit comments

Comments
 (0)