Fix cron jobs by removing the extra unusable argument
This commit is contained in:
parent
5f6ee45f44
commit
ba96829d13
6 changed files with 7 additions and 7 deletions
|
@ -60,7 +60,7 @@ class ProcessScheduleServiceTest extends TestCase
|
|||
|
||||
$this->repository->shouldReceive('loadTasks')->with($model)->once()->andReturn($model);
|
||||
|
||||
$formatted = sprintf('%s %s %s * %s *', $model->cron_minute, $model->cron_hour, $model->cron_day_of_month, $model->cron_day_of_week);
|
||||
$formatted = sprintf('%s %s %s * %s', $model->cron_minute, $model->cron_hour, $model->cron_day_of_month, $model->cron_day_of_week);
|
||||
$this->repository->shouldReceive('update')->with($model->id, [
|
||||
'is_processing' => true,
|
||||
'next_run_at' => CronExpression::factory($formatted)->getNextRunDate(),
|
||||
|
|
Reference in a new issue