diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 9b9e1e14..decfd3c6 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -6453,10 +6453,12 @@ 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" });