Skip to content

Commit

Permalink
Merge pull request #2 from Pharaonic/moemen
Browse files Browse the repository at this point in the history
fix: removed unintended database write operation in sync method
  • Loading branch information
MoamenEltouny authored Jul 25, 2024
2 parents 9f1443f + c4deb3f commit e8de002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendor
composer.lock
.phpunit.cache
2 changes: 1 addition & 1 deletion src/Services/ExecutorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit e8de002

Please sign in to comment.