From d7be8badb0e8bc0f884853f572f8fc55b82d39e5 Mon Sep 17 00:00:00 2001 From: varun Date: Tue, 28 Feb 2023 04:09:31 -0500 Subject: [PATCH] made changes in tanks controller --- src/controllers/tanksController.js | 3 ++- src/routes/tanksRoute.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index fa621e6d..8d3a79fc 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -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 () { diff --git a/src/routes/tanksRoute.js b/src/routes/tanksRoute.js index c5493165..a9aa097f 100644 --- a/src/routes/tanksRoute.js +++ b/src/routes/tanksRoute.js @@ -157,6 +157,7 @@ module.exports = function (fastify, opts, next) { description: "customerId", }, }, + }, // querystring: { // tankName: {type: 'string'}