Skip to content

Commit

Permalink
Merge pull request #22 from utopia-php/lohanidamodar-patch-1
Browse files Browse the repository at this point in the history
Match exact worker name
  • Loading branch information
christyjacob4 authored May 22, 2024
2 parents 2c6e9eb + 3a53931 commit 003c622
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 003c622

Please sign in to comment.