Ahh just one little thing buggin me!
This commit is contained in:
parent
88f36531b1
commit
a451361c0d
@ -34,7 +34,7 @@ export const POST = async (request: Request) => {
|
|||||||
if (!technicians.every(isTechnician))
|
if (!technicians.every(isTechnician))
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{ message: 'Invalid input: missing name or status for a technician.' },
|
{ message: 'Invalid input: missing name or status for a technician.' },
|
||||||
{ status: 400 }
|
{ status: 400 }
|
||||||
);
|
);
|
||||||
await updateEmployeeStatusByName(technicians);
|
await updateEmployeeStatusByName(technicians);
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
|
Loading…
Reference in New Issue
Block a user