Skip to main content

Function: hireCandidate()

hireCandidate(_prev, formData): Promise<HiredState>

Defined in: src/server/actions/recruiting.ts:940

Hire: delegates to the transactional, compliance- and PRC-gated hire_candidate RPC. The RPC raises (→ a Postgres error) if a gate fails; we map that to a friendly message. On success it returns the new contractor id and we mint the portal invite token (hashed; the RPC stored the hash).

Parameters

_prev

HiredState

formData

FormData

Returns

Promise<HiredState>