test #2402

Merged
pablone merged 8 commits from test into dev 2024-05-03 10:58:44 +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({