diff --git a/ondeck/src/app/(dashboard)/clients/[id]/page.tsx b/ondeck/src/app/(dashboard)/clients/[id]/page.tsx index a1570a9..05ff44c 100644 --- a/ondeck/src/app/(dashboard)/clients/[id]/page.tsx +++ b/ondeck/src/app/(dashboard)/clients/[id]/page.tsx @@ -75,7 +75,7 @@ export default async function ClientDetailPage({ { AND: [ { status: { in: ['COMPLETED', 'CANCELLED', 'NA'] } }, - { dueDate: { gte: cutoff } }, + { completedAt: { gte: cutoff } }, ], }, ], diff --git a/ondeck/src/app/(dashboard)/tasks/page.tsx b/ondeck/src/app/(dashboard)/tasks/page.tsx index 7881fa3..b5f80b4 100644 --- a/ondeck/src/app/(dashboard)/tasks/page.tsx +++ b/ondeck/src/app/(dashboard)/tasks/page.tsx @@ -36,14 +36,14 @@ export default async function TasksPage() { { policyGroup: { renewalDate: { gte: cutoff } } }, ], }, - // Keep ALL open tasks regardless of age; only hide ancient terminal tasks + // Keep ALL open tasks regardless of age; only show terminal tasks completed/closed recently { OR: [ { status: { notIn: TERMINAL_STATUSES } }, { AND: [ { status: { in: TERMINAL_STATUSES } }, - { dueDate: { gte: cutoff } }, + { completedAt: { gte: cutoff } }, ], }, ], diff --git a/ondeck/src/app/api/clients/[id]/tasks/route.ts b/ondeck/src/app/api/clients/[id]/tasks/route.ts index cbfc3c5..b2c4cab 100644 --- a/ondeck/src/app/api/clients/[id]/tasks/route.ts +++ b/ondeck/src/app/api/clients/[id]/tasks/route.ts @@ -43,7 +43,7 @@ export async function GET( { AND: [ { status: { in: ['COMPLETED', 'CANCELLED', 'NA'] } }, - { dueDate: { gte: cutoff } }, + { completedAt: { gte: cutoff } }, ], }, ],