Fix autodeploy time checking.
This commit is contained in:
parent
a307ff4696
commit
619d3fe480
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue