diff options
| author | Adam Malczewski <[email protected]> | 2026-05-21 00:07:03 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-05-21 00:07:03 +0900 |
| commit | 41f681d23491f0ba090afae053f0232743703619 (patch) | |
| tree | af2fdbf8cd0f9d6de9784f1ffb74c2f0522e9d28 /docker/entrypoint.dev.sh | |
| parent | 1f4776e6891348d2dbdcbbf704c0a5901b008ecf (diff) | |
| download | dispatch-41f681d23491f0ba090afae053f0232743703619.tar.gz dispatch-41f681d23491f0ba090afae053f0232743703619.zip | |
fix: backend wake scheduler with atomic toggle API, American time display
- Replaced POST /wake-schedule (full-replace) with
POST /wake-schedule/toggle (atomic single-hour toggle)
to eliminate race conditions between frontend and scheduler
- Recursive setTimeout prevents overlapping wake executions
- HMR-safe via global timer reference
- Frontend now uses toggle endpoint instead of full schedule POST
- Display shows reset time (wake hour + 5h) in American 12h format
e.g. '8:15 → Reset at 1:00 PM' instead of European 24h
Diffstat (limited to 'docker/entrypoint.dev.sh')
0 files changed, 0 insertions, 0 deletions
