diff --git a/src/Checks/Checks/SnapshooterCheck.php b/src/Checks/Checks/SnapshooterCheck.php index 73535ba..3c6aa22 100644 --- a/src/Checks/Checks/SnapshooterCheck.php +++ b/src/Checks/Checks/SnapshooterCheck.php @@ -14,6 +14,7 @@ class SnapshooterCheck extends Check { public function run(): Result { + $result = Result::make(); $key = config('health-exp.snapshooter.secret') ?: 'ss-secret'; $jobs = Http::withToken($key) @@ -31,11 +32,11 @@ public function run(): Result $status = $backup["status"] ?? "failed"; if ($status != 'complete') { - return $this->failedResult(); + return $result->failed($job['name'] ?? 'BACKUP FAILED'); } } - return Result::make()->ok(); + return $result->ok(); } } \ No newline at end of file