diff --git a/ondeck/src/app/api/clients/route.ts b/ondeck/src/app/api/clients/route.ts index aaa9c40..7e968e1 100644 --- a/ondeck/src/app/api/clients/route.ts +++ b/ondeck/src/app/api/clients/route.ts @@ -58,7 +58,7 @@ export async function GET(request: NextRequest) { } if (hasPolicies === 'true') { - where.policies = { some: {} } + where.policies = { some: { status: { notIn: ['Cancelled', 'Expired', 'Non-Renewed', 'Rewritten', 'Not taken'] } } } } if (teamMemberId) {