This commit is contained in:
seb
2026-10-30 11:54:16 +00:00
parent fbe3105dc9
commit bc1340419c
4 changed files with 102 additions and 11 deletions

View File

@@ -316,13 +316,9 @@ export async function runSelfTest() {
apiLog.info(`Config: host=${env.host} port=${env.port} dbProvider=${env.dbProvider}`);
// 2. Test database & store initialization
try {
await ensureConnection();
const schemaVer = await getSchemaVersion();
apiLog.info(`Database & store: OK (provider: ${env.dbProvider}, schema v${schemaVer})`);
} catch (err) {
apiLog.warn(`Database connection warning: ${err.message}`);
}
await ensureConnection();
const schemaVer = await getSchemaVersion();
apiLog.info(`Database & store: OK (provider: ${env.dbProvider}, schema v${schemaVer})`);
// 3. Build API app and register all route modules
const app = await buildApiApp();