Fix massive update notification parameters

This commit is contained in:
mei23 2022-07-09 17:55:35 +09:00 committed by ThinaticSystem
parent 09cb1bba71
commit 004cf8fa91

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,