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/goals/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
unit: updatedGoal.unit,
recurrence: updatedGoal.recurrence,
completedAt: new Date().toISOString(),
}).catch(() => {});
}).catch( => console.error());

Check failure on line 174 in src/app/api/goals/[id]/route.ts

View workflow job for this annotation

GitHub Actions / Type check

Argument expression expected.
}

return Response.json({ goal: updatedGoal });
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/metrics/contributions/hourly/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function GET(req: NextRequest) {

const daysParam = req.nextUrl.searchParams.get("days");
const parsedDays = daysParam ? parseInt(daysParam, 10) : NaN;
const days = isNaN(parsedDays) ? 30 : Math.max(1, Math.min(365, parsedDays));
const days = Number.isNaN(parsedDays) ? 30 : Math.max(1, Math.min(365, parsedDays));
const bypass = isMetricsCacheBypassed(req);
const key = metricsCacheKey(
session.githubId ?? session.githubLogin,
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/metrics/streak/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
dispatchToAllWebhooks(userId, "streak.milestone", {
streakCount: currentStreak,
achievedAt: new Date().toISOString(),
}).catch(() => {});
}).catch( => console.error());

Check failure on line 140 in src/app/api/metrics/streak/route.ts

View workflow job for this annotation

GitHub Actions / Type check

Argument expression expected.
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/app/api/user/orgs/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,5 @@
return NextResponse.json({ error: "Internal server error" }, { status: 500 });
}
}

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

Check failure on line 177 in src/app/api/user/orgs/route.ts

View workflow job for this annotation

GitHub Actions / Type check

';' expected.

Check failure on line 177 in src/app/api/user/orgs/route.ts

View workflow job for this annotation

GitHub Actions / Type check

')' expected.

Check failure on line 177 in src/app/api/user/orgs/route.ts

View workflow job for this annotation

GitHub Actions / Type check

'try' expected.

Check failure on line 177 in src/app/api/user/orgs/route.ts

View workflow job for this annotation

GitHub Actions / Type check

Declaration or statement expected.
Loading