Skip to content

Commit

Permalink
Mail: Force send() as async
Browse files Browse the repository at this point in the history
Signed-off-by: Fadion Dashi <jonidashi@gmail.com>
  • Loading branch information
fadion committed Mar 19, 2018
1 parent a582451 commit ee0a0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mail/lib/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Mail {
* @throws {MissingMailParams} Email headers incomplete
* @throws {MailSendingFailed} Fail to send email
*/
send(body, cb) {
async send(body, cb) {
if (!cb || typeof cb !== 'function')
throw new MissingMailParams('Mail expects a valid callback that builds the message.')

Expand Down

0 comments on commit ee0a0c4

Please sign in to comment.