- pauseDraftOnError now calls onDraftPaused() before emitting so the error-path pause carries the same snapshotted timer data as the manual-pause route (fixes inconsistency between the two paths) - Parallelize DB updates in onDraftPaused with Promise.all instead of sequential awaits - Extract clientExpiresAt() helper to draft-timer.ts and use it in all three places that re-anchor timeRemaining to the client clock, replacing duplicated Date.now() + timeRemaining * 1000 expressions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| app.ts | ||
| db.ts | ||
| logger.ts | ||
| overnight-pause-check.ts | ||
| snapshots.ts | ||
| socket.d.ts | ||
| socket.ts | ||
| timer.ts | ||
| types.d.ts | ||
| virtual-modules.d.ts | ||