Fix autodeploy time checking.

This commit is contained in:
Dane Everitt
2017-04-17 21:37:45 -04:00
parent a307ff4696
commit 619d3fe480
2 changed files with 2 additions and 1 deletions

View File

@@ -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);