mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-07 01:04:03 +09:00
fix: some fixes of multiple notification read (#8819)
* fix: limit multiple notification read * fix * fix
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user