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