diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 69f68e2f..d48fbe7e 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -1128,7 +1128,7 @@ exports.consumption = async (request, reply) => { try { const { customerId } = request.params; const { startDate, stopDate, block } = request.body; - let { typeofwater } = request.body; + let typeofwater = request.body.typeofwater.toLowerCase(); // Convert typeofwater to lowercase typeofwater = typeofwater.toLowerCase();