Skip to content

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavgarg25 committed Dec 28, 2024
1 parent 6e4638f commit f26706c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/(default)/api/achievements/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function POST(request: Request) {
} catch (error) {
console.error("Error creating member:", error);
return NextResponse.json(
{ error: "An error occurred", details:error},
{ error: "An error occurred", details:(error as Error).message},
{ status: 500 }
);
}
Expand Down Expand Up @@ -98,7 +98,7 @@ export async function GET(request: NextRequest) {
} catch (error) {
console.error("Error fetching members:", error);
return NextResponse.json(
{ error: "An error occurred while fetching members", details: error.message },
{ error: "An error occurred while fetching members", details: (error as Error).message },
{ status: 500 }
);
}
Expand Down Expand Up @@ -154,7 +154,7 @@ export async function PUT(request: Request) {
} catch (error) {
console.error("Error updating member:", error);
return NextResponse.json(
{ error: "An error occurred while updating", details: error.message },
{ error: "An error occurred while updating", details: (error as Error).message },
{ status: 500 }
);
}
Expand Down

0 comments on commit f26706c

Please sign in to comment.