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'],
|
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…
x
Reference in New Issue
Block a user