some editing
This commit is contained in:
@@ -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'] },
|
||||
|
||||
Reference in New Issue
Block a user