mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-17 05:43:36 +00:00
refactor(db): collapse repository rollout scaffolding into single factory
Repositories are now the only data path. Replaces the 41 current-*-repository wrapper files, the DATABASE_LAYER_REPOSITORY_ROLLOUT flag/alias map and the unused database/runtime adapter with repositories/factory.ts, a plain DatabaseContext type and an in-memory TestSqliteDatabase test harness.
This commit is contained in:
@@ -97,10 +97,6 @@ import {
|
||||
version: version,
|
||||
});
|
||||
|
||||
const { logRepositoryRolloutConfig } =
|
||||
await import("./database/repositories/repository-rollout.js");
|
||||
logRepositoryRolloutConfig();
|
||||
|
||||
const systemCrypto = SystemCrypto.getInstance();
|
||||
await systemCrypto.initializeJWTSecret();
|
||||
await systemCrypto.initializeDatabaseKey();
|
||||
@@ -160,7 +156,7 @@ import {
|
||||
|
||||
// Initialize log level from database settings
|
||||
const { getCurrentSettingValue } =
|
||||
await import("./database/repositories/current-settings-repository.js");
|
||||
await import("./database/repositories/factory.js");
|
||||
const logLevel = getCurrentSettingValue("log_level");
|
||||
if (logLevel) {
|
||||
setGlobalLogLevel(logLevel);
|
||||
|
||||
Reference in New Issue
Block a user