Skip to main content

Function: findActiveEnrollment()

findActiveEnrollment(svc, companyId, target): Promise<{ id: string; } | null>

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

An existing active enrollment of this target in this sequence (the no-double-enroll guard).

Parameters

svc

SupabaseClient

companyId

string

target

facilityId?

string

leadId?

string

sequenceId

string

Returns

Promise<{ id: string; } | null>