fix: todoCount和highRiskCount使用去重后的数据保持一致

This commit is contained in:
selfrelease
2026-07-31 11:37:49 +08:00
parent c184670775
commit 3f580bdb3d
+2 -2
View File
@@ -895,8 +895,8 @@ export async function getDashboardData(orgId: string) {
greeting,
stats: {
employeeCount,
highRiskCount: highRisks,
todoCount: pendingRisks,
highRiskCount: dedupedTodos.filter((t) => t.level === 'high' && (t.type === 'CONTRACT' || t.type === 'TERMINATION')).length,
todoCount: todos.length,
monthlyOvertimePay,
},
urgentRisk,