fix external logs route

This commit is contained in:
Vikhyath Mondreti
2026-01-28 19:33:44 -08:00
parent 111c34c3b4
commit f63ea9cc1a

View File

@@ -215,6 +215,7 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
}
for (const log of logs) {
if (!log.workflowId) continue // Skip logs for deleted workflows
const idx = Math.min(
segments - 1,
Math.max(0, Math.floor((log.startedAt.getTime() - start.getTime()) / segmentMs))