diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 803efe73..f61d5e78 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -2717,11 +2717,12 @@ exports.getPumpsAndUsers = async (req, reply) => { const username = user?.username || ""; // Include username at the beginning of staffNames and add "manual" at the end - const updatedStaffNames = [username, ...staffNames, "manual","user"]; + const updatedStaffNames = ["All",username, ...staffNames, "manual","user"]; + const updatedmotorIds = ["All",motorIds]; // Prepare response const result = { - motorIds, + motorIds: updatedmotorIds, staffNames: updatedStaffNames, }; @@ -2735,9 +2736,6 @@ exports.getPumpsAndUsers = async (req, reply) => { - - - const monitorWaterLevels = async () => { try { const tanks = await Tank.find({});