소스 수정

This commit is contained in:
2025-12-28 16:43:12 +09:00
parent c2733ca3da
commit eb9848ede4

View File

@@ -23,7 +23,7 @@ export default defineEventHandler(async (event) => {
current_value, threshold_value, message, detected_at current_value, threshold_value, message, detected_at
FROM anomaly_logs FROM anomaly_logs
WHERE detect_type = $1 WHERE detect_type = $1
AND detected_at >= NOW() - INTERVAL '${interval}' AND detected_at::timestamp >= NOW() - INTERVAL '${interval}'
ORDER BY detected_at DESC ORDER BY detected_at DESC
LIMIT 100 LIMIT 100
`, [type]) `, [type])