mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-15 17:10:50 +01:00
test: dont clear local when testing
This commit is contained in:
@@ -28,8 +28,11 @@ const total = _.cloneDeep(local);
|
||||
|
||||
const runJobs = nconf.get('runJobs');
|
||||
|
||||
Analytics.pause = false;
|
||||
|
||||
Analytics.init = async function () {
|
||||
new cronJob('*/10 * * * * *', (async () => {
|
||||
if (Analytics.pause) return;
|
||||
publishLocalAnalytics();
|
||||
if (runJobs) {
|
||||
await sleep(2000);
|
||||
|
||||
Reference in New Issue
Block a user