mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Fix autodeploy time checking.
This commit is contained in:
@@ -129,7 +129,7 @@ class RemoteController extends Controller
|
||||
}
|
||||
|
||||
// Check if token is expired
|
||||
if ($model->created_at->lt(Carbon::now())) {
|
||||
if ($model->created_at->addMinutes(5)->lt(Carbon::now())) {
|
||||
$model->delete();
|
||||
|
||||
return response()->json(['error' => 'token_expired'], 403);
|
||||
|
||||
Reference in New Issue
Block a user