Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/api/metrics/productive-hours/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export async function GET(req: NextRequest) {
} else {
const daysParam = searchParams.get("days");
const parsedDays = daysParam ? parseInt(daysParam, 10) : NaN;
days = isNaN(parsedDays) ? 90 : Math.max(1, Math.min(365, parsedDays));
days = Number.isNaN(parsedDays) ? 90 : Math.max(1, Math.min(365, parsedDays));
}

const accountId = searchParams.get("accountId");
Expand Down
3 changes: 2 additions & 1 deletion src/app/api/project-tutor/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,5 @@
console.error("Project tutor error:", error);
return NextResponse.json({ error: "Something went wrong" }, { status: 500 });
}
}
}
.catch(err => console.error("Promise.all failed:", err));

Check failure on line 167 in src/app/api/project-tutor/route.ts

View workflow job for this annotation

GitHub Actions / Type check

';' expected.

Check failure on line 167 in src/app/api/project-tutor/route.ts

View workflow job for this annotation

GitHub Actions / Type check

')' expected.

Check failure on line 167 in src/app/api/project-tutor/route.ts

View workflow job for this annotation

GitHub Actions / Type check

'try' expected.

Check failure on line 167 in src/app/api/project-tutor/route.ts

View workflow job for this annotation

GitHub Actions / Type check

Declaration or statement expected.
2 changes: 2 additions & 0 deletions src/app/api/user/export/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,5 @@
},
});
}

.catch(err => console.error("Promise.all failed:", err));

Check failure on line 310 in src/app/api/user/export/route.ts

View workflow job for this annotation

GitHub Actions / Type check

';' expected.

Check failure on line 310 in src/app/api/user/export/route.ts

View workflow job for this annotation

GitHub Actions / Type check

')' expected.

Check failure on line 310 in src/app/api/user/export/route.ts

View workflow job for this annotation

GitHub Actions / Type check

'try' expected.

Check failure on line 310 in src/app/api/user/export/route.ts

View workflow job for this annotation

GitHub Actions / Type check

Declaration or statement expected.
3 changes: 2 additions & 1 deletion src/app/dashboard/repo-comparison/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,5 @@
)}
</div>
);
}
}
.catch(err => console.error("Promise.all failed:", err));

Check failure on line 207 in src/app/dashboard/repo-comparison/page.tsx

View workflow job for this annotation

GitHub Actions / Type check

'try' expected.

Check failure on line 207 in src/app/dashboard/repo-comparison/page.tsx

View workflow job for this annotation

GitHub Actions / Type check

Declaration or statement expected.
Loading