diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index d1a18623..b832b4dc 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -4,6 +4,7 @@ const boom = require("boom"); const fastify = require("fastify")({ logger: true, }); +const tanksController = require("./tanksController") @@ -179,6 +180,7 @@ exports.updateTanklevels = async (req, reply) => { exports.getTanklevels = async (req, reply) => { try { const customerId = req.params.customerId; + await tanksController.updateTanklevels(req) const updated_data = await Tank.find({ customerId: customerId });