fix syntax
Ewout Stortenbeker committed
Sep 17, 2022 at 00:04 UTC
6a31e3fc02e05cf848eb8084625cd16f155ae42f
1 file changed
+1
-1
db.js
+1
-1
@@ -1833,7 +1833,7 @@ module.exports.CreateDB = function (parent, func) {
1833
}; // Get all plugins
1834
obj.getPlugin = function (id, func) { obj.file.query('plugin').filter('_id', '==', id).get(function (snapshots) { const docs = []; for (var i in snapshots) { docs.push(snapshots[i].val()); } func(null, docs); }); }; // Get plugin
1835
obj.deletePlugin = function (id, func) { obj.file.ref('plugin').child(encodeURIComponent(id)).remove().then(function () { if (func) { func(); } }); }; // Delete plugin
1836
- obj.setPluginStatus = function (id, status, func) { obj.file.ref('plugin'.child(encodeURIComponent(id)).update({ status: status }).then(function (ref) { if (func) { func(); } }) };
1836
+ obj.setPluginStatus = function (id, status, func) { obj.file.ref('plugin').child(encodeURIComponent(id)).update({ status: status }).then(function (ref) { if (func) { func(); } }) };
1837
obj.updatePlugin = function (id, args, func) { delete args._id; obj.file.ref('plugin').child(encodeURIComponent(id)).set(args).then(function (ref) { if (func) { func(); } }) };
1838
}
1839
} else if (obj.databaseType == 6) {