Changeset 5f43245 in Klonkt for package-lock.json

Timestamp:
06/16/2026 04:05:27 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
a742e9f
Parents:
00d54bc
Message:

Fix: fresh install crashes on first boot (sessions table doesn't exist yet)

initializeDatabase() was called AFTER the session-store constructor, but
SqliteSessionStore queries the sessions table during construction. On a
fresh DB (new self-host/instance) that table didn't exist yet ->
"no such table: sessions" -> crash-loop on the very first boot. Existing
instances already had their schema, so this went unnoticed.

initializeDatabase() is now moved to before the session middleware.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.