diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 8bb25691..2e268ef9 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -6456,7 +6456,7 @@ exports.updatetankstatus = async (req, reply) => { exports.listofactiveandinactivetankstatus = async (req, reply) => { try { const { customerId } = req.params; - const { status } = req.query; + const status = req.query.status.toLowerCase(); if (!["active", "inactive"].includes(status)) { return reply.code(400).send({ message: "Invalid status value" });