Function: recomputeDayEntry()
recomputeDayEntry(
svc,input):Promise<RecomputeResult>
Defined in: src/server/services/timeEntry.ts:33
Rebuild a day's time_entries row from its time_segments: hours = Σ closed-segment
durations, re-running the overage (→ pending_approval) and single-day anomaly logic. The daily
total stays the single source of truth every downstream consumer reads. Refuses to touch a
locked or approved day; clears the entry when the day has no time.
Parameters
svc
SupabaseClient
input
Returns
Promise<RecomputeResult>