made changes in tanks controller

master
varun 3 years ago
parent af6892f8b1
commit d7be8badb0

@ -153,10 +153,11 @@ exports.updateTanklevels = async (req, reply) => {
for (var i=0; i < tank.length; i++) { for (var i=0; i < tank.length; i++) {
const tankname = tank[i].tankName const tankname = tank[i].tankName
const capacity = (tank[i].capacity).replace(/,/g, "") const capacity = (tank[i].capacity).replace(/,/g, "")
//console.log(capacity)
let Number = capacity-100 //Math.floor(Math.random() * capacity) let Number = capacity-100 //Math.floor(Math.random() * capacity)
//console.log(Number) //console.log(Number)
setInterval(async function () { setInterval(async function () {

@ -157,6 +157,7 @@ module.exports = function (fastify, opts, next) {
description: "customerId", description: "customerId",
}, },
}, },
}, },
// querystring: { // querystring: {
// tankName: {type: 'string'} // tankName: {type: 'string'}

Loading…
Cancel
Save