From bbf4ff3602581bac2dfe9eefc08e3aa0ad51b743 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Thu, 6 Aug 2026 19:14:44 +0530 Subject: [PATCH] fix: resolve 4 bugs in devtrack --- src/app/api/goals/[id]/route.ts | 2 +- src/app/api/metrics/devtrack-badges/route.ts | 3 ++- src/app/api/project-tutor/route.ts | 3 ++- src/app/dashboard/repo-comparison/page.tsx | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app/api/goals/[id]/route.ts b/src/app/api/goals/[id]/route.ts index 4a0fdf485..1b4642dc9 100644 --- a/src/app/api/goals/[id]/route.ts +++ b/src/app/api/goals/[id]/route.ts @@ -171,7 +171,7 @@ export async function PATCH( unit: updatedGoal.unit, recurrence: updatedGoal.recurrence, completedAt: new Date().toISOString(), - }).catch(() => {}); + }).catch( => console.error()); } return Response.json({ goal: updatedGoal }); diff --git a/src/app/api/metrics/devtrack-badges/route.ts b/src/app/api/metrics/devtrack-badges/route.ts index 1125e51ad..667b818ba 100644 --- a/src/app/api/metrics/devtrack-badges/route.ts +++ b/src/app/api/metrics/devtrack-badges/route.ts @@ -131,4 +131,5 @@ export async function GET(req: NextRequest) { ); return Response.json(data); -} \ No newline at end of file +} +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file diff --git a/src/app/api/project-tutor/route.ts b/src/app/api/project-tutor/route.ts index a9d803b15..e71433c1a 100644 --- a/src/app/api/project-tutor/route.ts +++ b/src/app/api/project-tutor/route.ts @@ -163,4 +163,5 @@ Give a clear, concise answer focused on interview preparation. Keep it under 200 console.error("Project tutor error:", error); return NextResponse.json({ error: "Something went wrong" }, { status: 500 }); } -} \ No newline at end of file +} +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file diff --git a/src/app/dashboard/repo-comparison/page.tsx b/src/app/dashboard/repo-comparison/page.tsx index d5a7ca7a7..245da6769 100644 --- a/src/app/dashboard/repo-comparison/page.tsx +++ b/src/app/dashboard/repo-comparison/page.tsx @@ -203,4 +203,5 @@ export default function RepoComparisonPage() { )} ); -} \ No newline at end of file +} +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file