GET /versions/:id/log, DELETE /log/:logid, and PATCH /log/:logid were defined in both routes/operations.js and routes/log.js. operations.js is registered first, so its handlers shadowed log.js entirely (dead code). Move the authoritative implementations (value/units totals in GET, closed-version 403 guard in DELETE) into log.js and remove the duplicates from operations.js, keeping operations.js focused on the forecast ops. No behavior change — the served handlers were already the operations.js versions; they are now defined once. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| log.js | ||
| operations.js | ||
| sources.js | ||
| tables.js | ||
| versions.js | ||