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

Pass the correct callback to dispatchMail #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smurthas
Copy link

If several messages got queued up during the fs.readFile call for a single template, when the template was finally loaded, dispatchMail would get called for each message, but would get passed the callback associated with the first one (the only one that invoked the fs.readFile call). This bundles the callback in with the message itself, ensuring that the callback associated with that message is the one passed to dispatchMail

… message itself, and call that once it can been sent.
@smurthas
Copy link
Author

Do you think you'll be able to pull this in anytime soon? We've been pointing to my fork in our package.json for a while now. Thanks!

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.

1 participant