|
|
|
@ -1128,7 +1128,7 @@ exports.consumption = async (request, reply) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const { customerId } = request.params;
|
|
|
|
const { customerId } = request.params;
|
|
|
|
const { startDate, stopDate, block } = request.body;
|
|
|
|
const { startDate, stopDate, block } = request.body;
|
|
|
|
let { typeofwater } = request.body;
|
|
|
|
let typeofwater = request.body.typeofwater.toLowerCase();
|
|
|
|
|
|
|
|
|
|
|
|
// Convert typeofwater to lowercase
|
|
|
|
// Convert typeofwater to lowercase
|
|
|
|
typeofwater = typeofwater.toLowerCase();
|
|
|
|
typeofwater = typeofwater.toLowerCase();
|
|
|
|
|