Open parthami opened 2 years ago
I think it can be confusing when receiving a message from SQS, that the payload is modified to only include the data values if the data key is present. I don't think this is mentioned anywhere.
data
For example, my message from SQS contains these keys:
{ "event": '' "data": {} "timestamp": '' "version": '' }
but I only end up with the data values - even if I use $job->getRawBody()
$job->getRawBody()
I just thought it might be something helpful to clarify for future devs looking to use this package.
Yes this caught me as well.
I think it can be confusing when receiving a message from SQS, that the payload is modified to only include the
data
values if thedata
key is present. I don't think this is mentioned anywhere.For example, my message from SQS contains these keys:
but I only end up with the
data
values - even if I use$job->getRawBody()
I just thought it might be something helpful to clarify for future devs looking to use this package.