Skip to main content

Function: getOrCreateEmployerFacility()

getOrCreateEmployerFacility(svc, companyId): Promise<string | null>

Defined in: src/server/services/employerFacility.ts:18

Get-or-create the internal employer facility for a company. Returns its id, or null on failure.

Parameters​

svc​

SupabaseClient

companyId​

string

Returns​

Promise<string | null>