fix: todoCount和highRiskCount使用去重后的数据保持一致
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user