fix(gateway): pass sqlite DSN to NewAPIHandlerWithAuth so gateway can open DB for key auth
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user