From 471944b3e5496e7f9169ab055cbafa5f3c336974 Mon Sep 17 00:00:00 2001 From: varun Date: Thu, 23 Feb 2023 05:25:39 -0500 Subject: [PATCH] made update tank levels api hit automatically when get tank levels called --- src/controllers/tanksController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index b832b4dc..ba0cdce7 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -180,7 +180,7 @@ exports.updateTanklevels = async (req, reply) => { exports.getTanklevels = async (req, reply) => { try { const customerId = req.params.customerId; - await tanksController.updateTanklevels(req) + // await tanksController.updateTanklevels(req) const updated_data = await Tank.find({ customerId: customerId });