Skip to content

Commit

Permalink
Merge aa9f295 into faf2135
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Sep 12, 2018
2 parents faf2135 + aa9f295 commit 3f0a8a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Support/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Resource implements JsonSerializable
protected $currentAction;

/**
* @var boolean|null
* @var bool|null
*/
protected $graphEnabled = null;

Expand Down
5 changes: 2 additions & 3 deletions src/Support/Traits/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@ protected function saveResultsToDatabase($target, $result)
'value_human' => $result->valueHuman,
]);

return (
return
HealthCheck::where([
'resource_slug' => $target->resource->slug,
'target_name' => $target->name,
])
->orderBy('created_at', 'desc')
->take(config('health.database.max_records'))
->get()
);
->get();
}
}
3 changes: 1 addition & 2 deletions src/config/health.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@

'action-title' => 'View App Health',

'action_message' =>
"The '%s' service is in trouble and needs attention%s",
'action_message' => "The '%s' service is in trouble and needs attention%s",

'from' => [
'name' => 'Laravel Health Checker',
Expand Down

0 comments on commit 3f0a8a7

Please sign in to comment.