From 909a6a4eb3332c8ec66a7018fb41baf3e48bc888 Mon Sep 17 00:00:00 2001 From: Eric Park Date: Sun, 25 Feb 2024 10:41:51 -0500 Subject: [PATCH] backend: api: fix parameter check --- backend/src/app/api/v0/bookstatus/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/app/api/v0/bookstatus/route.ts b/backend/src/app/api/v0/bookstatus/route.ts index 448b00f7..5baf3090 100644 --- a/backend/src/app/api/v0/bookstatus/route.ts +++ b/backend/src/app/api/v0/bookstatus/route.ts @@ -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 },