diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..35024a0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +vendor +composer.lock +.phpunit.cache \ No newline at end of file diff --git a/src/Services/ExecutorService.php b/src/Services/ExecutorService.php index a848cf2..700f17d 100644 --- a/src/Services/ExecutorService.php +++ b/src/Services/ExecutorService.php @@ -79,7 +79,7 @@ public function sync() $batch = $this->getNextBatch(); $newExecutors->each(function ($executor) use (&$executors, $batch) { - $executor['model'] = Executor::create([ + $executor['model'] = new Executor([ 'executor' => $executor['name'], 'type' => $executor['type'], 'tag' => $executor['tag'],