Skip to main content

Function: refreshOneFacilityScore()

refreshOneFacilityScore(svc, companyId, facilityId): Promise<FacilityScoreWriteResult | null>

Defined in: src/server/services/facility-score.ts:103

Recompute and persist a single facility's score, using the company's calibrated cutoffs (or the defaults until the first batch pass runs). Returns the new score/tier, or null if not found.

Parameters

svc

SupabaseClient

companyId

string

facilityId

string

Returns

Promise<FacilityScoreWriteResult | null>