Skip to main content

Function: listTasksForEnrollments()

listTasksForEnrollments(svc, companyId, enrollmentIds): Promise<object[]>

Defined in: src/db/queries/pipeline.ts:1048

All tasks for a set of enrollments (the cadence engine's batched heal). Ids are chunked — an unbounded .in() rides the URL and can hit gateway length limits — and each chunk paginates past PostgREST's max-rows cap, so the result is never silently truncated (a truncated task list would make the progress recompute wrong, not just slow).

Parameters

svc

SupabaseClient

companyId

string

enrollmentIds

string[]

Returns

Promise<object[]>