Skip to main content

Function: reactivateContractor()

reactivateContractor(_prev, formData): Promise<ReactivateState>

Defined in: src/server/actions/contractors.ts:216

Owner-only: bring an archived (deactivated) contractor back to active. Guarded transition (archived → active) that also clears the contract end date. It does NOT reopen their old assignments — those were end-dated on offboard, so re-assign them deliberately if needed.

Parameters​

_prev​

ReactivateState

formData​

FormData

Returns​

Promise<ReactivateState>