Function: enrollInSequence()
enrollInSequence(
_prev,formData):Promise<PipelineActionState>
Defined in: src/server/actions/pipeline.ts:362
Enroll a facility (or lead) into a cadence (M-04): create the enrollment, then materialize its step tasks so Today's Follow-ups populates immediately. Guards against double-enrolling the same target in the same active sequence (also enforced by a partial unique index). The contact-enrichment gate is intentionally not enforced yet (sparse contact data — see schema note).
Parameters
_prev
formData
FormData
Returns
Promise<PipelineActionState>