This commit is contained in:
2019-01-16 09:09:54 +08:00
parent 0cc08f136d
commit b2eeb13f83
12 changed files with 29 additions and 150 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ const logger = {
function Objects(cb) {
if (!(this instanceof Objects)) return new Objects(cb);
const _Objects = require(rootDir + 'tmp/node_modules/iobroker.js-controller/lib/objects');
const _Objects = require(rootDir + 'tmp/node_modules/yunkong2.js-controller/lib/objects');
this.connected = false;
const that = this;
+1 -1
View File
@@ -407,7 +407,7 @@ function clearControllerLog() {
}
function clearDB() {
const dirPath = rootDir + 'tmp/iobroker-data/sqlite';
const dirPath = rootDir + 'tmp/yunkong2-data/sqlite';
let files;
try {
if (fs.existsSync(dirPath)) {
+1 -1
View File
@@ -21,7 +21,7 @@ const logger = {
function States(cb, stateChange) {
const that = this;
const _States = require(rootDir + 'tmp/node_modules/iobroker.js-controller/lib/states');
const _States = require(rootDir + 'tmp/node_modules/yunkong2.js-controller/lib/states');
let callbackId = 0;
const options = {