fix: some fixes of multiple notification read (#8819)
* fix: limit multiple notification read * fix * fix
This commit is contained in:
parent
3a987b0006
commit
11a6bd890c
3 changed files with 18 additions and 2 deletions
|
|
@ -9,6 +9,8 @@ export async function readNotification(
|
|||
userId: User['id'],
|
||||
notificationIds: Notification['id'][]
|
||||
) {
|
||||
if (notificationIds.length === 0) return;
|
||||
|
||||
// Update documents
|
||||
await Notifications.update({
|
||||
id: In(notificationIds),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue