diff --git a/src/api-docs/api.html b/src/api-docs/api.html
index 95071855..068a77b4 100644
--- a/src/api-docs/api.html
+++ b/src/api-docs/api.html
@@ -49,8 +49,8 @@
show-header = 'false'
allow-authentication ="true"
>
diff --git a/src/api-docs/api.html.save b/src/api-docs/api.html.save
new file mode 100644
index 00000000..4bc403af
--- /dev/null
+++ b/src/api-docs/api.html.save
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/config/swagger.js b/src/config/swagger.js
index 8ecce77f..fa7556d0 100644
--- a/src/config/swagger.js
+++ b/src/config/swagger.js
@@ -14,9 +14,9 @@ exports.options = {
},
// We have to change this beacause this is running on local
// we have to run on this on swagger
- // host: "localhost:5000", //Devlopemnt host on lcoal
-
- host: "35.207.198.4:5000", //Production for swagger
+ //host: "localhost:5000", //Devlopemnt host on lcoal
+ //host: "35.207.198.4:3000", //Production for swagger
+host: "35.207.198.4:3000",
schemes: ["http"],
consumes: ["application/json"],
produces: ["application/json"],
diff --git a/src/controllers/createConnectionController.js b/src/controllers/createConnectionController.js
index f192c878..2dbb4755 100644
--- a/src/controllers/createConnectionController.js
+++ b/src/controllers/createConnectionController.js
@@ -27,7 +27,7 @@ exports.createConnections = async (req, body) => {
inputConnections: connection.inputConnections,
input_type: connection.input_type,
motor_status: connection.motor_status || "0",
- inputismotor: connection.inputismotor // default to false if not specified
+ inputismotor: connection.inputismotor // default to false if not specified
};
});
}
@@ -107,7 +107,7 @@ exports.updateconnectionInfo = async (req, reply) => {
inputConnections: connection.inputConnections,
input_type: connection.input_type,
motor_status: connection.motor_status || "0",
- inputismotor: connection.inputismotor || false // default to false if not specified
+ inputismotor: connection.inputismotor // default to false if not specified
};
});
}
@@ -118,7 +118,7 @@ exports.updateconnectionInfo = async (req, reply) => {
return {
outputConnections: connection.outputConnections,
output_type: connection.output_type,
- outputismotor: connection.outputismotor || false // default to false if not specified
+ outputismotor: connection.outputismotor // default to false if not specified
};
});
}
diff --git a/src/index.js b/src/index.js
index 230e017b..aad38643 100644
--- a/src/index.js
+++ b/src/index.js
@@ -360,7 +360,7 @@ const start = async () => {
try {
- await fastify.listen(5000, "0.0.0.0");
+ await fastify.listen(3000, "0.0.0.0");
fastify.log.info(`listening on ${fastify.server.address().port}`);
fastify.log.info(`server listening on ${fastify.config}`);
} catch (err) {
diff --git a/src/models/tanks.js b/src/models/tanks.js
index a20ec760..5184d731 100644
--- a/src/models/tanks.js
+++ b/src/models/tanks.js
@@ -48,7 +48,7 @@ const tanksSchema = new mongoose.Schema({
{
inputConnections: { type: String },
input_type: { type: String },
- inputismotor: { type: Boolean },
+ inputismotor: { type: Boolean, },
motor_status: { type: String, default: "0" }
}
],
@@ -56,7 +56,7 @@ const tanksSchema = new mongoose.Schema({
{
outputConnections: { type: String },
output_type: { type: String },
- outputismotor: { type: Boolean },
+ outputismotor: { type: Boolean, },
motor_status: { type: String, default: "0" }
}
]
diff --git a/src/routes/createConnectionsRoute.js b/src/routes/createConnectionsRoute.js
index 457fa5a1..e9469f85 100644
--- a/src/routes/createConnectionsRoute.js
+++ b/src/routes/createConnectionsRoute.js
@@ -182,7 +182,7 @@ module.exports = function (fastify, opts, next) {
properties: {
inputConnections: { type: "string", default: null },
type: { type: "string", default: null },
- inputismotor: { type: "boolean"},
+ inputismotor: { type: "boolean" },
},
},
},