Created
April 21, 2019 17:40
-
-
Save iskenxan/97aa21caafb6f969dda36457c8f5d49a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sendReceipt(orderId, userEmail, client) { | |
const receiptHTML = this._generateReceiptHtml(orderId, userEmail); | |
switch(client) { | |
case 'email': { | |
sendEmail(receiptHTML, userEmail); | |
break; | |
} | |
case 'slack': { | |
sendSlackMessage(receiptHTML, userEmail); | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment