fix: remove trailing quote in date string literal (again)

This commit is contained in:
wttwins
2026-05-20 13:24:37 +00:00
parent 70c7e17a99
commit 2ccded7d12

View File

@@ -92,7 +92,7 @@ export async function GET() {
dailyTrend.push({ date: dateStr, count: 0 })
}
for (const item of recentErrorItems) {
const dateStr = new Date(item.createdAt).toISOString().split('T')[0]'
const dateStr = new Date(item.createdAt).toISOString().split('T')[0]
const found = dailyTrend.find(d => d.date === dateStr)
if (found) {
found.count += item._count.id