|
|
|
@ -6456,7 +6456,7 @@ exports.updatetankstatus = async (req, reply) => {
|
|
|
|
exports.listofactiveandinactivetankstatus = async (req, reply) => {
|
|
|
|
exports.listofactiveandinactivetankstatus = async (req, reply) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const { customerId } = req.params;
|
|
|
|
const { customerId } = req.params;
|
|
|
|
const { status } = req.query;
|
|
|
|
const status = req.query.status.toLowerCase();
|
|
|
|
|
|
|
|
|
|
|
|
if (!["active", "inactive"].includes(status)) {
|
|
|
|
if (!["active", "inactive"].includes(status)) {
|
|
|
|
return reply.code(400).send({ message: "Invalid status value" });
|
|
|
|
return reply.code(400).send({ message: "Invalid status value" });
|
|
|
|
|