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/milestones/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export async function POST(req: Request) {
? unit.trim().slice(0, MAX_UNIT_LEN)
: "units";

if (typeof targetDate !== "string" || isNaN(new Date(targetDate).getTime())) {
if (typeof targetDate !== "string" || Number.isNaN(new Date(targetDate).getTime())) {
return NextResponse.json({ error: "targetDate must be a valid date string" }, { status: 400 });
}

Expand Down
2 changes: 2 additions & 0 deletions src/app/compare/[users]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -419,3 +419,5 @@
</div>
);
}

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

Check failure on line 423 in src/app/compare/[users]/page.tsx

View workflow job for this annotation

GitHub Actions / Type check

';' expected.

Check failure on line 423 in src/app/compare/[users]/page.tsx

View workflow job for this annotation

GitHub Actions / Type check

')' expected.

Check failure on line 423 in src/app/compare/[users]/page.tsx

View workflow job for this annotation

GitHub Actions / Type check

'try' expected.

Check failure on line 423 in src/app/compare/[users]/page.tsx

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

';' expected.

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

View workflow job for this annotation

GitHub Actions / Type check

')' expected.

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