Fix notifications total on update (#93)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2025-08-12 12:22:20 +04:00
committed by GitHub
parent 930e7b8034
commit bb0bf3665d
@@ -417,6 +417,7 @@ export class NotificationContextsQuery implements PagedQuery<NotificationContext
if (shouldRefreshTotal) {
const nRes = await this.client.findNotifications({
...this.params.notifications,
context: context.id,
limit: 1,
total: true
})
@@ -458,6 +459,7 @@ export class NotificationContextsQuery implements PagedQuery<NotificationContext
} else if (shouldRefreshTotal) {
const nRes = await this.client.findNotifications({
...this.params.notifications,
context: context.id,
limit: 1,
total: true
})