Created
May 4, 2020 09:55
-
-
Save Aschen/95d9aaaf3b981a20da1032392a95a741 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EmailService { | |
constructor (log) { | |
this.log = log; | |
} | |
async notify (emails, requestId) { | |
for (const email of emails) { | |
this.log(`[${requestId}] Send email: ${email}`); | |
sendGrid.send(email); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment