Trek_CN/server
Maurice cb425fb397 Fix 500 on reservation edit after DB reinit (issue #883)
saveEndpoints was bound at module load via db.transaction(...). When the
demo-mode hourly reset (or a self-hoster's backup restore) closes the DB
connection and reinitialises it, the bound transaction still references
the now-closed connection — every subsequent reservation save with an
endpoints field throws "The database connection is not open", which the
client surfaces as "Internal server error".

Bind the transaction lazily on each call so it always runs against the
current connection.
2026-04-26 12:14:17 +02:00
..
assets refactor: move airports.json out of server/data into server/assets 2026-04-18 02:02:09 +02:00
public chore(CRLF): normalize index.html line endings to LF 2026-04-05 04:35:17 +02:00
scripts docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
src Fix 500 on reservation edit after DB reinit (issue #883) 2026-04-26 12:14:17 +02:00
tests fix(journey,pdf): journey reorder sort_order + PDF multi-day transport (#848) 2026-04-23 10:53:32 +02:00
.env.example fix: hot fixes 23-04-2026 (#856) 2026-04-23 19:49:36 +02:00
package-lock.json chore: bump version to 3.0.8 [skip ci] 2026-04-23 17:49:49 +00:00
package.json chore: bump version to 3.0.8 [skip ci] 2026-04-23 17:49:49 +00:00
reset-admin.js Stabilize core: better-sqlite3, versioned migrations, graceful shutdown 2026-03-22 17:52:24 +01:00
tsconfig.json some fixes 2026-03-30 06:59:24 +02:00
vitest.config.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00