Verified Commit d5eedad4 authored by Korko's avatar Korko
Browse files

Wait for 3 days after expiration before removing

parent 0c253882
Pipeline #291017 failed with stage
in 4 minutes and 12 seconds
......@@ -49,7 +49,8 @@ class Draw extends Model
public static function cleanup()
self::where('expires_at', '<=', DB::raw('CURRENT_TIMESTAMP'))->delete();
// Recap is sent 2 days after so remove everything 3 days after
self::where('expires_at', '<=', DB::raw('DATE_SUB(CURRENT_DATE, INTERVAL 3 DAY)'))->delete();
public function participants()
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