u
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user