From 5fc6e57d9ff575cc9781c057fd8a627ddbe18380 Mon Sep 17 00:00:00 2001 From: varun Date: Mon, 7 Aug 2023 22:36:34 -0400 Subject: [PATCH] made changes in iot create data --- src/models/tanks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/tanks.js b/src/models/tanks.js index 359d0faf..d8b8f6e0 100644 --- a/src/models/tanks.js +++ b/src/models/tanks.js @@ -92,7 +92,7 @@ const tankSchema = new mongoose.Schema({ const IOttankSchema = new mongoose.Schema({ hardwareId: { type: String }, - mode: { type: Number, required: true }, + mode: { type: String }, tanks: [tankSchema], date: { type: String, required: true }, time: { type: String, required: true }