Rolled back the mtype fix.

Ylian Saint-Hilaire committed Dec 30, 2020 at 17:14 UTC 93ace89b69e448482b75df24404d8d71444b8ee9
2 files changed +2 -9
db.js
+1 -8
@@ -101,14 +101,7 @@ module.exports.CreateDB = function (parent, func) {
101 obj.GetAllType('mesh', function (err, docs) {
102 if (err != null) { parent.debug('db', 'ERROR (GetAll mesh): ' + err); }
103 var meshlist = [];
104 - if ((err == null) && (docs.length > 0)) {
105 - for (var i in docs) {
106 - meshlist.push(docs[i]._id);
107 -
108 - // Make sure all mesh types are number type, if not, fix it.
109 - if (typeof docs[i].mtype == 'string') { docs[i].mtype = parseInt(docs[i].mtype); obj.Set(docs[i]); }
110 - }
111 - }
104 + if ((err == null) && (docs.length > 0)) { for (var i in docs) { meshlist.push(docs[i]._id); } }
105 if ((obj.databaseType == 4) || (obj.databaseType == 5)) {
106 // MariaDB
107 sqlDbQuery('DELETE FROM MeshCentral.Main WHERE (extra LIKE ("mesh/%") AND (extra NOT IN ?)', [meshlist], func);
package.json
+1 -1
@@ -1,6 +1,6 @@
1 {
2 "name": "meshcentral",
3 - "version": "0.7.33",
3 + "version": "0.7.34",
4 "keywords": [
5 "Remote Device Management",
6 "Remote Device Monitoring",