Skip to content

Commit c22ef35

Browse files
committed
discordconfig fix
1 parent adc89bc commit c22ef35

File tree

2 files changed

+1124
-980
lines changed

2 files changed

+1124
-980
lines changed

config/discordNotifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function resolveDiscordNotification(
9898
// 1. Weekly-specific config
9999
if (weeklyConfigId != null) {
100100
const specific = DISCORD_NOTIFICATIONS.find(
101-
(e) => e.firCode === firCode && e.notificationType === type && e.weeklyConfigId === weeklyConfigId
101+
(e) => e.firCode === firCode && e.notificationType === type && (e.weeklyConfigId === undefined || e.weeklyConfigId === weeklyConfigId)
102102
);
103103
if (specific) return { channelId: specific.channelId, roleId: specific.roleId };
104104
}

0 commit comments

Comments
 (0)