From d5de7e9c196d5cbb07d878fdbd0cf5498c93ee52 Mon Sep 17 00:00:00 2001 From: Louis Gaume Date: Thu, 25 Feb 2021 11:32:01 +0100 Subject: [PATCH] Add UUID to payload --- src/Sqs/Queue.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Sqs/Queue.php b/src/Sqs/Queue.php index 1a9fcd4..fb41840 100644 --- a/src/Sqs/Queue.php +++ b/src/Sqs/Queue.php @@ -93,7 +93,8 @@ private function modifyPayload($payload, $class) $body = [ 'job' => $class . '@handle', - 'data' => isset($body['data']) ? $body['data'] : $body + 'data' => isset($body['data']) ? $body['data'] : $body, + 'uuid' => $payload['MessageId'] ]; $payload['Body'] = json_encode($body);