made changes in iot create data

master
varun 2 years ago
parent 2a99a49608
commit 87f8c1484e

@ -959,6 +959,7 @@ exports.calculateCapacity = async (req, reply) => {
exports.IotDevice = async (req, reply) => {
try {
const { hardwareId, mode, tanks } = req.body;
@ -978,6 +979,7 @@ exports.IotDevice = async (req, reply) => {
time: time
}));
// create a new IotData document with the provided data
const ottank = new IotData({ hardwareId, mode, tanks: tankDocuments, date, time });

Loading…
Cancel
Save