bbc / sqs-consumer

Build Amazon Simple Queue Service (SQS) based applications without the boilerplate
https://bbc.github.io/sqs-consumer/
Other
1.71k stars 330 forks source link

fix: once event is not only firing once #394

Closed nicholasgriffintn closed 1 year ago

nicholasgriffintn commented 1 year ago

Resolves #393

Description:

The .once event is not actually being fired only once due to the node API in the background being .on rather than .once

Type of change:

Why is this change required?:

This changes the API that's used in the background for once to also be once

Code changes: