Created
September 9, 2021 11:20
-
-
Save ChaiyachetU/3c26e816c8013a04c46ab0f144b192d7 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
function main() { | |
// get unread emails from priority contact list | |
const priorityUnreadEmails = getPriorityUnreadEmails(); | |
// if priority unread emails is not empty send emails message to line notify | |
if (priorityUnreadEmails.length !== 0) { | |
priorityUnreadEmails.forEach(unreadEmail => sendMessageToLineNotify(unreadEmail, lineNotifyToken)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment