Skip to content

Commit bc43f54

Browse files
committed
fix: handle null values for tags and servers in ExecutorItem and update ExecuteCommand to reference executor tags
1 parent 0b39b4c commit bc43f54

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Classes/ExecutorItem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public function isExecutable()
8484

8585
$this->model?->fill([
8686
'type' => $this->executor->type,
87-
'tags' => $this->executor->tags,
88-
'servers' => $this->executor->servers,
87+
'tags' => $this->executor->tags ?: null,
88+
'servers' => $this->executor->servers ?: null,
8989
]);
9090

9191
return $this->model?->isExecutable() ?? true;

src/Console/ExecuteCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function handle()
4040
continue;
4141
}
4242

43-
if ($tags && ! array_intersect(explode(',', $tags), $item->tags)) {
43+
if ($tags && ! array_intersect(explode(',', $tags), $item->executor->tags)) {
4444
continue;
4545
}
4646

0 commit comments

Comments
 (0)