Skip to main content

Function: getHolidaysConfig()

getHolidaysConfig(svc, companyId): Promise<HolidaysConfig>

Defined in: src/server/services/settings.ts:79

The company's observed-holidays config (which standard holidays are disabled). Unknown ids are dropped so a stale setting can't reference a holiday that no longer exists. Holidays only affect in-house admin pay (they reduce the period's expected hours).

Parameters

svc

SupabaseClient

companyId

string

Returns

Promise<HolidaysConfig>