fix(discord): notification groupings

This commit is contained in:
Jef LeCompte
2020-12-11 18:04:22 -05:00
parent 064ce83f03
commit ad0b2fe525
2 changed files with 6 additions and 5 deletions
+4 -2
View File
@@ -48,12 +48,14 @@ export function sendDiscordMessage(link: Link, store: Store) {
let notifyText: string[] = [];
if (notifyGroup) {
notifyText = notifyText.concat(notifyGroup);
}
if (Object.keys(notifyGroupSeries).indexOf(link.series) !== 0) {
notifyText = notifyText.concat(
notifyGroupSeries[link.series]
);
} else if (notifyGroup) {
notifyText = notifyText.concat(notifyGroup); // If there is no group for the series we
}
const promises = [];