Verified Commit aedf7b52 authored by les's avatar les
Browse files

fix duplicated notification

parent 05c77634
......@@ -43,7 +43,7 @@ const notifier = {
// insert notifications
const notifications = await eventController.getNotifications(event, action)
await event.addNotifications(notifications)
const event_notifications = await event.getNotifications()
const event_notifications = await event.getNotifications({ through: { where: { status: 'new' } } })
const promises = event_notifications.map(async notification => {
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment