|
|
@ -140,7 +140,7 @@ exports.getTank = async (req, reply) => {
|
|
|
|
// throw boom.boomify(err);
|
|
|
|
// throw boom.boomify(err);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//};
|
|
|
|
//};
|
|
|
|
let intervalTimer;
|
|
|
|
|
|
|
|
exports.updateTanklevels = async (req, reply) => {
|
|
|
|
exports.updateTanklevels = async (req, reply) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const customerId = req.params.customerId;
|
|
|
|
const customerId = req.params.customerId;
|
|
|
@ -154,7 +154,7 @@ exports.updateTanklevels = async (req, reply) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//console.log(Number)
|
|
|
|
//console.log(Number)
|
|
|
|
intervalTimer=setInterval(async function () {
|
|
|
|
setInterval(async function () {
|
|
|
|
|
|
|
|
|
|
|
|
// const randomNumber = Math.floor(Math.random() * capacity)
|
|
|
|
// const randomNumber = Math.floor(Math.random() * capacity)
|
|
|
|
//const randomNumber = Math.floor(Math.random() * (5500 - 1000) + 1000);
|
|
|
|
//const randomNumber = Math.floor(Math.random() * (5500 - 1000) + 1000);
|
|
|
|