From c9f70cecf9e9e038d7ea193538ead404015add2a Mon Sep 17 00:00:00 2001 From: varun Date: Mon, 15 May 2023 07:18:46 -0400 Subject: [PATCH] made changes in tanks start and stop --- 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 7ab93b34..44c86290 100644 --- a/src/models/tanks.js +++ b/src/models/tanks.js @@ -23,7 +23,7 @@ const tanksSchema = new mongoose.Schema({ motor_status: { type: String, default: 0 }, connections: { source: { type: String}, - inputConnections: [{ inputConnections: String,input_type:String,motor_status:String }], + inputConnections: [{ inputConnections: String,input_type:String,motor_status: { type: String, default: "0" } }], outputConnections: [{ outputConnections: String,output_type:String }] }