Skip to content

Commit

Permalink
backend: api: fix parameter check
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswpark committed Feb 25, 2024
1 parent b2cea96 commit 909a6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/app/api/v0/bookstatus/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function POST(request: NextRequest) {
const book_id = data.book_id;
const status = data.status;

if (!user_id || !book_id || status) {
if (!user_id || !book_id || !status) {
return NextResponse.json(
{ message: `Parameters not supplied.` },
{ status: 400 },
Expand Down

0 comments on commit 909a6a4

Please sign in to comment.