Deploy API fix
This commit is contained in:
@@ -33,7 +33,7 @@ export async function POST(req: NextRequest): Promise<NextResponse> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!name && !repo) || !nodeId) {
|
if (!name || !repo || !nodeId) {
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{ message: "Body missing name, repo, nodeId" },
|
{ message: "Body missing name, repo, nodeId" },
|
||||||
{ status: StatusCodes.BAD_REQUEST }
|
{ status: StatusCodes.BAD_REQUEST }
|
||||||
|
|||||||
Reference in New Issue
Block a user