diff --git a/server/src/controllers/actuator.controller.ts b/server/src/controllers/actuator.controller.ts index 01efe67b4030a26772b554e7fc67e406371b034d..04137f5170cb630fb072ada071a3b94cbbf21c6f 100644 --- a/server/src/controllers/actuator.controller.ts +++ b/server/src/controllers/actuator.controller.ts @@ -8,7 +8,8 @@ export function setLED(req: Request, res: Response, next: NextFunction) { const id: string = req.params.id; const value = req.body["value"]; - if(id != "4"){ + + if(id != "4" || id != "2" || id != "22"){ res.status(401).json({"msg" :"LED does not exist"}) } if(value == null || !(value === 0 || value === 1)){