some editing

This commit is contained in:
yotakii
2026-03-25 12:04:27 +03:00
parent ba33072d95
commit 3fd62ba0ad
7 changed files with 18 additions and 7 deletions

View File

@@ -8,7 +8,11 @@ class DashboardController {
const userId = req.user!.id;
const [contactsCount, activeTasksCount, unreadNotificationsCount] = await Promise.all([
prisma.contact.count(),
prisma.contact.count({
where: {
archivedAt: null,
},
}),
prisma.task.count({
where: {
status: { notIn: ['COMPLETED', 'CANCELLED'] },