Skip to content

Commit 1256dc9

Browse files
committed
Merge branch 'eslint-ecma-change' of github.com:Countly/countly-server into eslint-ecma-change
2 parents cf03b2b + 40ee4a5 commit 1256dc9

File tree

2 files changed

+28
-262
lines changed

2 files changed

+28
-262
lines changed

api/api.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ plugins.connectToAllDatabases().then(function() {
265265
if (cluster.isMaster) {
266266
plugins.installMissingPlugins(common.db);
267267
common.runners = require('./parts/jobs/runner');
268-
common.cache = new CacheMaster(common.db);
268+
common.cache = new CacheMaster();
269269
common.cache.start().then(() => {
270270
setImmediate(() => {
271271
plugins.dispatch('/cache/init', {});
@@ -334,7 +334,7 @@ plugins.connectToAllDatabases().then(function() {
334334
console.log("Starting worker", process.pid, "parent:", process.ppid);
335335
const taskManager = require('./utils/taskmanager.js');
336336

337-
common.cache = new CacheWorker(common.db);
337+
common.cache = new CacheWorker();
338338
common.cache.start();
339339

340340
//since process restarted mark running tasks as errored

0 commit comments

Comments
 (0)