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'],
|
userId: User['id'],
|
||||||
query: Record<string, any>
|
query: Record<string, any>
|
||||||
) {
|
) {
|
||||||
const notificationIds = await Notifications.find({
|
const notificationIds = await Notifications.findBy({
|
||||||
...query,
|
...query,
|
||||||
notifieeId: userId,
|
notifieeId: userId,
|
||||||
isRead: false,
|
isRead: false,
|
||||||
|
|
Loading…
Reference in a new issue