mirror of
https://github.com/tiennm99/coolify.git
synced 2026-07-14 05:06:06 +00:00
fix(sentinel): accept empty container heartbeats
Allow Sentinel pushes with an empty containers array so servers with no running containers still refresh their heartbeat and enqueue an update.
This commit is contained in:
@@ -79,7 +79,7 @@ class SentinelController extends Controller
|
||||
return response()->json(['message' => 'Unauthorized'], 401);
|
||||
}
|
||||
$validator = Validator::make($request->all(), [
|
||||
'containers' => ['required', 'array', 'min:1'],
|
||||
'containers' => ['present', 'array'],
|
||||
]);
|
||||
|
||||
if ($validator->fails()) {
|
||||
|
||||
Reference in New Issue
Block a user