diff --git a/app/Console/Commands/removeOldSubmissionConfirmations.php b/app/Console/Commands/removeOldSubmissionConfirmations.php new file mode 100644 index 00000000..db6660c2 --- /dev/null +++ b/app/Console/Commands/removeOldSubmissionConfirmations.php @@ -0,0 +1,58 @@ +subWeek(); + DB::table('submission_confirmations') + ->where('created_at', '<', $oneWeekAgo) + ->delete(); + } catch (Exception $e) { + echo $e->getMessage(); + $h = new Handler(app()); + $h->report($e); + return 1; + } + return 0; + } +}