mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 05:17:39 -07:00
Fix Attempts to update all notifications (#8974)
* Fix massive update notification parameters * CHANGELOG * CHANGELOG
This commit is contained in:
parent
638f0eba12
commit
6125bd981e
2 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@ You should also include the user name that made the change.
|
||||||
- Make active email validation configurable
|
- Make active email validation configurable
|
||||||
|
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
|
- Server: Fix Attempts to update all notifications @mei23
|
||||||
|
|
||||||
## 12.112.2 (2022/07/08)
|
## 12.112.2 (2022/07/08)
|
||||||
|
|
||||||
|
|
|
@ -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…
Reference in a new issue