v0.3.4: redis_status returns Chinese labels for frontend color

- db-status endpoint: redis_status returns 已连接/未连接/错误 instead of English
- Frontend compares k.redis_status === "已连接" → green text-success badge
- English connected was not matching, always showed yellow text-warning
This commit is contained in:
2026-05-17 04:40:53 +08:00
parent b852d9577a
commit 29e0fcbd43
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
0.3.3
0.3.4

View File

@@ -425,9 +425,9 @@ router.get('/admin/db-status', async (_req: Request, res: Response) => {
let redis_url = getSystemConfig('redis_url') || '';
try {
const testResult = await testRedisConnection(redis_url);
redis_status = testResult.ok ? 'connected' : 'disconnected';
redis_status = testResult.ok ? '已连接' : '未连接';
} catch {
redis_status = 'error';
redis_status = '错误';
}
res.json({