From 37694f993f8ecc859e3d2c8b0e849b3a44df067d Mon Sep 17 00:00:00 2001 From: phamnazage-jpg Date: Sun, 7 Jun 2026 14:42:46 +0800 Subject: [PATCH] fix(gateway): pass sqlite DSN to NewAPIHandlerWithAuth so gateway can open DB for key auth --- internal/app/bootstrap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/bootstrap.go b/internal/app/bootstrap.go index e802ae96..edb7fdc5 100644 --- a/internal/app/bootstrap.go +++ b/internal/app/bootstrap.go @@ -30,7 +30,7 @@ func Bootstrap(ctx context.Context) (*Server, error) { Username: adminSession.Username, Password: adminSession.Password, SessionTTL: adminSession.SessionTTL, - }, NewActionSetWithStickyRuntime(cfg.Database.SQLiteDSN, stickyRuntime)) + }, NewActionSetWithStickyRuntime(cfg.Database.SQLiteDSN, stickyRuntime), cfg.Database.SQLiteDSN) return NewServer(cfg.Server.ListenAddr, handler, nil), nil }