diff --git a/src/app/api/applications/route.ts b/src/app/api/applications/route.ts index e72fd43..c7e0e6a 100644 --- a/src/app/api/applications/route.ts +++ b/src/app/api/applications/route.ts @@ -33,7 +33,7 @@ export async function POST(req: NextRequest): Promise { ); } - if ((!name && !repo) || !nodeId) { + if (!name || !repo || !nodeId) { return NextResponse.json( { message: "Body missing name, repo, nodeId" }, { status: StatusCodes.BAD_REQUEST }