Function: upsertTimeEntry()
upsertTimeEntry(
_prev,formData):Promise<TimeEntryState>
Defined in: src/server/actions/timeEntries.ts:29
Contractor logs or edits a day's hours. Outsourced contractors only (in-house hours come from Hubstaff). Recomputes the week total to flag overage (status → pending_approval) and flags a single-day anomaly for admin review. Refuses to touch a locked period.
Parameters
_prev
formData
FormData
Returns
Promise<TimeEntryState>