summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2022-07-09 18:18:39 +0900
committerGitHub <noreply@github.com>2022-07-09 18:18:39 +0900
commit53e54c22fa3d0bec780441c07b5fd00e02193275 (patch)
treefc0202ee5e701578c6d83e21708b5caad08263c6
parentenhance: make active email validation configurable (diff)
downloadmisskey-53e54c22fa3d0bec780441c07b5fd00e02193275.tar.gz
misskey-53e54c22fa3d0bec780441c07b5fd00e02193275.tar.bz2
misskey-53e54c22fa3d0bec780441c07b5fd00e02193275.zip
Fix Attempts to update all notifications (#8974)
* Fix massive update notification parameters * CHANGELOG * CHANGELOG
-rw-r--r--CHANGELOG.md1
-rw-r--r--packages/backend/src/server/api/common/read-notification.ts2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 29f91596c1..cfd54f74db 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ You should also include the user name that made the change.
- Make active email validation configurable
### Bugfixes
+- Server: Fix Attempts to update all notifications @mei23
## 12.112.2 (2022/07/08)
diff --git a/packages/backend/src/server/api/common/read-notification.ts b/packages/backend/src/server/api/common/read-notification.ts
index 8c4ba41a36..17dd8e6f02 100644
--- a/packages/backend/src/server/api/common/read-notification.ts
+++ b/packages/backend/src/server/api/common/read-notification.ts
@@ -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,