diff --git a/server/model/monitor.js b/server/model/monitor.js index 8b2e1a23c..f17d10047 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -89,7 +89,7 @@ class Monitor extends BeanModel { mqttTopic: this.mqttTopic, mqttSuccessMessage: this.mqttSuccessMessage, databaseConnectionString: this.databaseConnectionString, - databaseQuery: this.databaseQuery + databaseQuery: this.databaseQuery, }; if (includeSensitiveData) { diff --git a/server/util-server.js b/server/util-server.js index 5cc767264..ea5cdd9d7 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -217,7 +217,6 @@ exports.sqlserver = function (connectionString, query) { }); mssql.connect(connectionString).then(pool => { - return pool.request() .query(query); }).then(result => {