Skip to main content

Function: syncHubstaffApi()

syncHubstaffApi(_prev, formData): Promise<HubstaffSyncState>

Defined in: src/server/actions/hubstaff.ts:108

Owner-only: pull tracked time from the Hubstaff API for an org + date range and upsert it as pending time entries (mapped to contractors by hubstaff_member_id). Company-scoped so it can't write another tenant's hours.

Parameters

_prev

HubstaffSyncState

formData

FormData

Returns

Promise<HubstaffSyncState>