Function: ensureEmployerAssignment()
ensureEmployerAssignment(
svc,companyId,contractorId,effectiveDate):Promise<void>
Defined in: src/server/services/employerFacility.ts:45
Ensure an in-house admin is assigned to the internal employer facility. No-op if they already have any active assignment. Best-effort: a failure is logged, not thrown, so it never blocks the caller (the contractor still gets created/updated; the assignment can be added manually if needed).
Parameters
svc
SupabaseClient
companyId
string
contractorId
string
effectiveDate
string
Returns
Promise<void>