From 447fee8460f94fbcf4d1d364bb4f220bffcabf86 Mon Sep 17 00:00:00 2001 From: Varun Date: Wed, 29 Jan 2025 11:43:03 +0530 Subject: [PATCH] changes in tanks active and inactive status --- src/controllers/tanksController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" });