Fix massive update notification parameters

This commit is contained in:
mei23 2022-07-09 17:55:35 +09:00 committed by Johann150
parent 5e36d75872
commit 0c5f8579d5
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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,