Skip to content

Commit

Permalink
token and code delete every 24 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
david p committed Jan 11, 2017
1 parent 1f1a159 commit f833efd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/CodeDelete.php
Expand Up @@ -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();
}
}
2 changes: 1 addition & 1 deletion app/Console/Commands/TokenDelete.php
Expand Up @@ -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.