Skip to content

Commit

Permalink
match worker name instead of substring
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar authored May 5, 2024
1 parent 48910f2 commit cb8dd46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Platform/Platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected function initWorker(array $services, string $workerName): void
$worker = $this->worker;
foreach ($services as $service) {
foreach ($service->getActions() as $key => $action) {
if ($action->getType() == Action::TYPE_DEFAULT && ! str_contains(strtolower($key), $workerName)) {
if ($action->getType() == Action::TYPE_DEFAULT && strtolower($key) !== $workerName) {
continue;
}
switch ($action->getType()) {
Expand Down

0 comments on commit cb8dd46

Please sign in to comment.