mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 02:57:34 +00:00
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:
@@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user