mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 14:05:05 +02:00
UBERF-6094: preparing bot (#5061)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -224,11 +224,9 @@ export class InboxNotificationsClientImpl implements InboxNotificationsClient {
|
||||
return
|
||||
}
|
||||
|
||||
const notificationsToRead = await client.findAll(notification.class.ActivityInboxNotification, {
|
||||
user: getCurrentAccount()._id,
|
||||
attachedTo: { $in: toReadIds },
|
||||
isViewed: { $ne: true }
|
||||
})
|
||||
const notificationsToRead = get(this.activityInboxNotifications).filter(({ attachedTo }) =>
|
||||
toReadIds.includes(attachedTo)
|
||||
)
|
||||
|
||||
for (const notification of notificationsToRead) {
|
||||
await client.update(notification, { isViewed: true })
|
||||
|
||||
Reference in New Issue
Block a user