Created
June 21, 2018 10:10
-
-
Save HassenIO/a811d1951487fb0883445bde58aba1b3 to your computer and use it in GitHub Desktop.
Test
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
const getSMSText = async (warning, id, introduced) => { | |
const text = notificationTemplate[warning.type].find(group => | |
group.categories.includes(warning.category) | |
).sentences[introduced ? 'next' : '1st']; | |
const link = await googl.shorten(`${decodeURIComponent(warning.url)}${id}`); | |
return `${text} ${link}`; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment