added test for recurring

This commit is contained in:
Denis Duliçi
2021-10-09 18:34:37 +03:00
parent 771ae64f0e
commit a2c44a5d2a
5 changed files with 67 additions and 13 deletions

View File

@ -112,11 +112,6 @@ class RecurringCheck extends Command
foreach ($schedules as $schedule) {
$schedule_date = Date::parse($schedule->getStart()->format('Y-m-d'));
// Don't recur the future
if ($schedule_date->greaterThan($today)) {
continue;
}
$this->recur($model, $recur->recurable_type, $schedule_date);
}
}