From 447fee8460f94fbcf4d1d364bb4f220bffcabf86 Mon Sep 17 00:00:00 2001 From: Varun Date: Wed, 29 Jan 2025 11:43:03 +0530 Subject: [PATCH 1/2] 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" }); From 8bf479685771429c5e85f31b815536aeec2e804a Mon Sep 17 00:00:00 2001 From: Varun Date: Wed, 29 Jan 2025 11:43:44 +0530 Subject: [PATCH 2/2] changes --- src/controllers/tanksController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 71e962e0..decfd3c6 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -6453,6 +6453,8 @@ exports.updatetankstatus = async (req, reply) => { + + exports.listofactiveandinactivetankstatus = async (req, reply) => { try { const { customerId } = req.params;