Fix massive update notification parameters
This commit is contained in:
parent
09cb1bba71
commit
004cf8fa91
@ -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…
x
Reference in New Issue
Block a user