upd: update api monitoring

This commit is contained in:
2026-04-21 17:29:47 +08:00
parent 02cf404bc9
commit dd6f27cf2b

View File

@@ -490,6 +490,7 @@ const MonitoringServer = new Elysia({ prefix: "/api/monitoring" })
name: true,
isActive: true,
createdAt: true,
updatedAt: true,
desc: true,
User: {
where: {
@@ -518,6 +519,7 @@ const MonitoringServer = new Elysia({ prefix: "/api/monitoring" })
isActive: data?.isActive,
desc: data?.desc,
createdAt: data?.createdAt ? formatDateTime(data.createdAt) : null,
updatedAt: data?.updatedAt ? formatDateTime(data.updatedAt) : null,
perbekel: data?.User[0]?.name || null,
} : null;