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 #134 0.76.0: SNS -> publish to subscribed SQS queue, "Records" a… #2

Merged
merged 2 commits into from
Feb 25, 2023

Conversation

huangjimmy
Copy link
Owner

…ssumption leads to lost message, empty array. mj1618#134

There is no need to check if (sub["Attributes"]["RawMessageDelivery"] === "true") inside publishSqs, this RawMessageDelivery check-process is already handled by publish.
The event object is what should be sent directly to an sqs endpoint.

This also works with serverless-offline-sqs plugin.

jimmy-shaojun and others added 2 commits February 24, 2023 18:05
…ds" assumption leads to lost message, empty array. mj1618#134

There is no need to check `    if (sub["Attributes"]["RawMessageDelivery"] === "true") ` inside `publishSqs`, this `RawMessageDelivery` check-process is already handled by `publish`.
The `event` object is what should be sent directly to an sqs endpoint.

This also works with serverless-offline-sqs plugin.
@huangjimmy huangjimmy merged commit d7a50fe into main Feb 25, 2023
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

Successfully merging this pull request may close these issues.

2 participants