Last active
June 28, 2020 09:03
-
-
Save hw0k/b2051c31adaa5424518e90caaf53d456 to your computer and use it in GitHub Desktop.
FND 3
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
async function sendNotifications() { | |
const preferences = await UserPreferencesRepository.findAll(); | |
preferences.forEach(preference => { | |
if (preference.hasAllowedNotification) { | |
NotificationModule.send(preference); | |
} | |
}); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment