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++) {
const tankname = tank[i].tankName
const capacity = (tank[i].capacity).replace(/,/g, "")
//console.log(capacity)
let Number = capacity-100 //Math.floor(Math.random() * capacity)
//console.log(Number)
setInterval(async function () {

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

Loading…
Cancel
Save