fix: refs #6005 runtime #2401

Merged
pablone merged 5 commits from 6005-fix-runtime-error into test 2024-05-03 10:53:52 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 48bfba71de - Show all commits

View File

@ -30,8 +30,7 @@ module.exports = Self => {
return Object.keys(criteria).every(key => criteria[key] === paramsObj?.[key]);
});
if (filteredNotifications.length >= 1)
throw new Error('Previous notification sended with the same parameters');
if (filteredNotifications.length >= 1) return;
}
await models.NotificationQueue.create({