|
|
@ -256,7 +256,7 @@ exports.motorAction = async (req, reply) => {
|
|
|
|
const action = req.body.action
|
|
|
|
const action = req.body.action
|
|
|
|
const receiver_tank = req.body.to
|
|
|
|
const receiver_tank = req.body.to
|
|
|
|
const receiver_tank_info = await Tank.findOne({ customerId ,tankName:receiver_tank,tankLocation:(req.body.to_type).toLowerCase()});
|
|
|
|
const receiver_tank_info = await Tank.findOne({ customerId ,tankName:receiver_tank,tankLocation:(req.body.to_type).toLowerCase()});
|
|
|
|
const receiver_capacity = receiver_tank_info.capacity
|
|
|
|
const receiver_capacity = parseInt((receiver_tank_info.capacity).replace(/,/g, ''), 10)
|
|
|
|
const desired_water_percentage = parseInt((req.body.percentage).replace(/,/g, ''), 10)
|
|
|
|
const desired_water_percentage = parseInt((req.body.percentage).replace(/,/g, ''), 10)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|