大修改

This commit is contained in:
Yeomai committed 2026-09-30 03:38:10 +08:00
1 parent a1cbc9404a
commit e81481623c
47 files changed
+1453 -285

No files matched your search

+2 -1
View File
@@ -12,7 +12,8 @@ export class HealthController {
async health() {
let db = 'ok';
try {
await this.prisma.$queryRaw`SELECT 1`;
// 固定查生产库:探活关心的是主库是否可用
await this.prisma.main.$queryRaw`SELECT 1`;
} catch {
db = 'down';
}