fix(discord): ensure first group in list is notified (#1788)

This fix ensures that the `series` of a `link` is found in
`notifyGroupSeries`. Before this fix, the first key in
`notifyGroupSeries` was excluded.
This commit is contained in:
Jordan Tucker
2021-01-25 14:40:30 -06:00
committed by GitHub
parent ce609fb518
commit 9791568cd4
+1 -1
View File
@@ -52,7 +52,7 @@ export function sendDiscordMessage(link: Link, store: Store) {
notifyText = notifyText.concat(notifyGroup); notifyText = notifyText.concat(notifyGroup);
} }
if (Object.keys(notifyGroupSeries).indexOf(link.series) !== 0) { if (Object.keys(notifyGroupSeries).indexOf(link.series) !== -1) {
notifyText = notifyText.concat(notifyGroupSeries[link.series]); notifyText = notifyText.concat(notifyGroupSeries[link.series]);
} }