We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bebac86 commit 8cbecd5Copy full SHA for 8cbecd5
src/Sqs/Queue.php
@@ -141,12 +141,11 @@ private function modifyMultiplePayload($payload, $class)
141
142
$body = [];
143
$attributes = [];
144
- $batchIds = [];
145
146
- foreach ($payload as $item) {
+ foreach ($payload as $k => $item) {
147
//Log::debug('Each Messages==', [$item]);
148
//$body[] = json_decode($item['Body'], true);
149
- $body[] = [
+ $body[$k] = [
150
'messages' => json_decode($item['Body'], true),
151
'attributes' => $item['Attributes'],
152
'batchIds' => [
@@ -171,8 +170,6 @@ private function modifyMultiplePayload($payload, $class)
171
170
'Body' => json_encode($body),
172
'Attributes' => $attributes,
173
];
174
-
175
- //return $newPayload;
176
}
177
178
/**
0 commit comments