mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
added init method to database, progress made
This commit is contained in:
@@ -18,7 +18,6 @@ var fs = require('fs'),
|
||||
Plugins.readyEvent = new eventEmitter;
|
||||
|
||||
Plugins.init = function() {
|
||||
console.log('plugins init called');
|
||||
if (Plugins.initialized) {
|
||||
return;
|
||||
}
|
||||
@@ -39,7 +38,7 @@ var fs = require('fs'),
|
||||
winston.info('[plugins] Plugins OK');
|
||||
}
|
||||
Plugins.initialized = true;
|
||||
plugins.readyEvent.emit('ready');
|
||||
Plugins.readyEvent.emit('ready');
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user