Skip to content

Commit f63ea9c

Browse files
committed
fix external logs route
1 parent 111c34c commit f63ea9c

File tree

1 file changed

+1
-0
lines changed
  • apps/sim/app/api/workspaces/[id]/metrics/executions

1 file changed

+1
-0
lines changed

apps/sim/app/api/workspaces/[id]/metrics/executions/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
215215
}
216216

217217
for (const log of logs) {
218+
if (!log.workflowId) continue // Skip logs for deleted workflows
218219
const idx = Math.min(
219220
segments - 1,
220221
Math.max(0, Math.floor((log.startedAt.getTime() - start.getTime()) / segmentMs))

0 commit comments

Comments
 (0)