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

fix: allow empty payloads #942

Merged
merged 1 commit into from Nov 7, 2022
Merged

fix: allow empty payloads #942

merged 1 commit into from Nov 7, 2022

Conversation

cody-greene
Copy link
Contributor

@cody-greene cody-greene commented Nov 3, 2022

ENG-7564

If a payload is empty or is malformed JSON, then the consumer callback should still be invoked (with the empty payload). If an empty payload was not expected, then downstream validation can NACK the message.

lib/queue.js Show resolved Hide resolved
test/queue.test.js Show resolved Hide resolved
@cody-greene cody-greene merged commit af1e3ae into pagerinc:master Nov 7, 2022
sa-pagerinc-automation pushed a commit that referenced this pull request Nov 7, 2022
## [5.4.4](v5.4.3...v5.4.4) (2022-11-07)

### Bug Fixes

* allow empty payloads ([#942](#942)) ([af1e3ae](af1e3ae))
@sa-pagerinc-automation
Copy link

🎉 This PR is included in version 5.4.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants