From 27bd372904a0c0c2b0894ece3891ff8770b6317d Mon Sep 17 00:00:00 2001 From: varun Date: Mon, 27 Feb 2023 04:22:23 -0500 Subject: [PATCH] made changes in tanks controller --- src/controllers/tanksController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index d2c99a2a..c3f6be34 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -140,7 +140,7 @@ exports.getTank = async (req, reply) => { // throw boom.boomify(err); // } //}; -let intervalTimer; + exports.updateTanklevels = async (req, reply) => { try { const customerId = req.params.customerId; @@ -154,7 +154,7 @@ exports.updateTanklevels = async (req, reply) => { //console.log(Number) - intervalTimer=setInterval(async function () { + setInterval(async function () { // const randomNumber = Math.floor(Math.random() * capacity) //const randomNumber = Math.floor(Math.random() * (5500 - 1000) + 1000);