Skip to content

Commit c8d7ee1

Browse files
add json_decode to getRawBody method in Job
1 parent 9ba1aa2 commit c8d7ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/Jobs/RabbitMQJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function fire()
4848
*/
4949
public function getRawBody()
5050
{
51-
$body = $this->message->body;
51+
$body = json_decode($this->message->body, true);
5252

5353
unset($body['data']['attempts']);
5454

0 commit comments

Comments
 (0)