forked from FoundKeyGang/FoundKey
Fix massive update notification parameters
This commit is contained in:
parent
5e36d75872
commit
0c5f8579d5
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export async function readNotificationByQuery(
|
|||
userId: User['id'],
|
||||
query: Record<string, any>
|
||||
) {
|
||||
const notificationIds = await Notifications.find({
|
||||
const notificationIds = await Notifications.findBy({
|
||||
...query,
|
||||
notifieeId: userId,
|
||||
isRead: false,
|
||||
|
|
Loading…
Reference in a new issue