Function: computeFacilityScoreView()
computeFacilityScoreView(
svc,companyId,facilityId):Promise<FacilityScoreResult|null>
Defined in: src/server/services/facility-score.ts:124
Compute (without persisting) the full score result — including the per-factor breakdown — for the Facility 360 "why this score" panel. Uses the company's calibrated cutoffs. Null if not found.
Parameters
svc
SupabaseClient
companyId
string
facilityId
string
Returns
Promise<FacilityScoreResult | null>