Permalink
Browse files

token and code delete every 24 hours

  • Loading branch information...
david p
david p committed Jan 11, 2017
1 parent 1f1a159 commit f833efdca6d9a404c5ca87a277171f63f3c352a8
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/Console/Commands/CodeDelete.php
  2. +1 −1 app/Console/Commands/TokenDelete.php
@@ -37,7 +37,7 @@ public function __construct()
*/
public function handle()
{
$cliff = (new \DateTime())->modify('-5 minutes');
$cliff = (new \DateTime())->modify('-24 hours');
\App\Code::where('created_at', '<', $cliff)->delete();
}
}
@@ -37,7 +37,7 @@ public function __construct()
*/
public function handle()
{
$cliff = (new \DateTime())->modify('-5 minutes');
$cliff = (new \DateTime())->modify('-24 hours');
\App\Token::where('created_at', '<', $cliff)->delete();
}
}

0 comments on commit f833efd

Please sign in to comment.