Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention in the README how the SQS message is modifed based on the 'data' key #56

Open
parthami opened this issue May 11, 2022 · 1 comment

Comments

@parthami
Copy link

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.

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()

I just thought it might be something helpful to clarify for future devs looking to use this package.

@njbarrett
Copy link

Yes this caught me as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants