Skip to content

Commit

Permalink
fix(discord): ensure first group in list is notified (#1788)
Browse files Browse the repository at this point in the history
This fix ensures that the `series` of a `link` is found in
`notifyGroupSeries`. Before this fix, the first key in
`notifyGroupSeries` was excluded.
  • Loading branch information
jordanbtucker committed Jan 25, 2021
1 parent ce609fb commit 9791568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notification/discord.ts
Expand Up @@ -52,7 +52,7 @@ export function sendDiscordMessage(link: Link, store: Store) {
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]);
}

Expand Down

0 comments on commit 9791568

Please sign in to comment.