fix: Duplicate mentions results in duplicate notifications (#5585)
This commit is contained in:
@@ -32,6 +32,10 @@ export default class RevisionCreatedNotificationsTask extends BaseTask<RevisionE
|
||||
const userIdsMentioned: string[] = [];
|
||||
|
||||
for (const mention of mentions) {
|
||||
if (userIdsMentioned.includes(mention.modelId)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const recipient = await User.findByPk(mention.modelId);
|
||||
if (
|
||||
recipient &&
|
||||
|
||||
Reference in New Issue
Block a user