Skip to content

Commit fd9c845

Browse files
committed
Fix bug
1 parent 14d3686 commit fd9c845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WorkerJS/PHPClient/TaskMessageRequestHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public function handleRequest(string $body) {
3030
throw new InvalidRequestException("Invalid request");
3131
}
3232

33-
$taskID = $body->taskID;
33+
$taskID = $body["taskID"];
3434

3535
$task = $this->client->getTaskByID($taskID);
3636

37-
$handlerName = $body->message->type;
37+
$handlerName = $body["message"]["type"];
3838

3939
try {
4040
$this->client->getTaskMessageRouter()->call($handlerName, $task, $body);

0 commit comments

Comments
 (0)