mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 14:37:41 +00:00
fix(discord): notification groupings
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user