Function: getContractorPayHistory()
getContractorPayHistory(
contractorId):Promise<ContractorHistoryResult>
Defined in: src/server/actions/payrollInsights.ts:18
Lazy fetch for the Payroll insights history block: one contractor's pay + hours per period.
Re-gated on the insights domain (defense-in-depth beyond the page/layout gate); the service
scopes every read to the admin's company, so a foreign contractor id returns empty rows.
Parameters
contractorId
string
Returns
Promise<ContractorHistoryResult>