Skip to content

Commit

Permalink
fix(core): fix broadcast with channels argument
Browse files Browse the repository at this point in the history
  • Loading branch information
MirrorCY authored Jan 14, 2024
1 parent 5eb0d97 commit 7262a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class DatabaseService extends Database<Tables> {
const assignMap: Dict<Dict<Pick<Channel, 'id' | 'guildId' | 'locales'>[]>> = {}
for (const channel of data) {
const { platform, id, assignee, flag } = channel
if (channels && !channels.includes(`${platform}:${id}`)) continue
if (channels && !channels.includes(id)) continue
if (!forced && (flag & Channel.Flag.silent)) continue
((assignMap[platform] ||= {})[assignee] ||= []).push(channel)
}
Expand Down

0 comments on commit 7262a82

Please sign in to comment.