mirror of
https://github.com/outline/outline.git
synced 2026-12-04 02:20:17 +03:00
perf: Count notifications without default scope joins (#14139)
This commit is contained in:
1 parent
accfa44da3
commit
ad8906d82e
1 file changed
+2
-2
@@ -113,10 +113,10 @@ router.post(
|
||||
offset: ctx.state.pagination.offset,
|
||||
limit: ctx.state.pagination.limit,
|
||||
}),
|
||||
Notification.count({
|
||||
Notification.unscoped().count({
|
||||
where,
|
||||
}),
|
||||
Notification.count({
|
||||
Notification.unscoped().count({
|
||||
where: {
|
||||
...where,
|
||||
viewedAt: {
|
||||
|
||||
Reference in new issue
Block a user