mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 07:12:33 +00:00
Refactor logging in PushServerUpdateJob, Application, and SentinelSeeder
This commit is contained in:
1 parent
8c53af088e
commit
2702fbc284
4 files changed
+34
-29
No files matched your search
+1
-1
@@ -148,12 +148,12 @@ Route::group([
|
||||
return response()->json(['message' => 'Server not found'], 404);
|
||||
}
|
||||
if ($server->settings->sentinel_token !== $naked_token) {
|
||||
logger('Unauthorized');
|
||||
return response()->json(['message' => 'Unauthorized'], 401);
|
||||
}
|
||||
$data = request()->all();
|
||||
|
||||
PushServerUpdateJob::dispatch($server, $data);
|
||||
|
||||
return response()->json(['message' => 'ok'], 200);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user