mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-05 09:17:41 +02:00
Fix notifications total on update (#93)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user