Commit 204c196c authored by Roberto Guido's avatar Roberto Guido

unsigned reports expire after one day

parent a4834334
......@@ -27,7 +27,7 @@ class HistoryController extends Controller
*/
public function index(Request $request)
{
History::where(DB::raw('DATE(date)'), '<', date('Y-m-d', strtotime('-7 days')))->where('signed', false)->delete();
History::where(DB::raw('DATE(date)'), '<', date('Y-m-d', strtotime('-1 days')))->where('signed', false)->delete();
$query = History::orderBy('date', 'desc');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment