perf: Count notifications without default scope joins (#14139)

This commit is contained in:
Tom Moor authored and GitHub committed 2026-10-18 18:53:08 -04:00
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: {