Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aramshiva committed Feb 5, 2025
1 parent cb36bfc commit 6244ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/books/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function GET() {
try {
const data = await myReadShelf.fetch();
return NextResponse.json(data);
} catch (e) {
} catch {
return NextResponse.json({ error: 'Failed to fetch data' }, { status: 500 });
}
}

0 comments on commit 6244ba1

Please sign in to comment.