mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
fix: db.init calls
This commit is contained in:
@@ -94,7 +94,9 @@ function activate(plugin) {
|
|||||||
|
|
||||||
function listPlugins() {
|
function listPlugins() {
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
db.init,
|
function (next) {
|
||||||
|
db.init(next);
|
||||||
|
},
|
||||||
function (next) {
|
function (next) {
|
||||||
db.getSortedSetRange('plugins:active', 0, -1, next);
|
db.getSortedSetRange('plugins:active', 0, -1, next);
|
||||||
},
|
},
|
||||||
@@ -109,7 +111,9 @@ function listPlugins() {
|
|||||||
|
|
||||||
function listEvents(count) {
|
function listEvents(count) {
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
db.init,
|
function (next) {
|
||||||
|
db.init(next);
|
||||||
|
},
|
||||||
async.apply(events.getEvents, '', 0, (count || 10) - 1),
|
async.apply(events.getEvents, '', 0, (count || 10) - 1),
|
||||||
function (eventData) {
|
function (eventData) {
|
||||||
console.log(('\nDisplaying last ' + count + ' administrative events...').bold);
|
console.log(('\nDisplaying last ' + count + ' administrative events...').bold);
|
||||||
@@ -143,7 +147,9 @@ function info() {
|
|||||||
console.log(' database: ' + config.database);
|
console.log(' database: ' + config.database);
|
||||||
next();
|
next();
|
||||||
},
|
},
|
||||||
db.init,
|
function (next) {
|
||||||
|
db.init(next);
|
||||||
|
},
|
||||||
function (next) {
|
function (next) {
|
||||||
db.info(db.client, next);
|
db.info(db.client, next);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -100,7 +100,9 @@ function beforeBuild(targets, callback) {
|
|||||||
process.stdout.write(' started'.green + '\n'.reset);
|
process.stdout.write(' started'.green + '\n'.reset);
|
||||||
|
|
||||||
async.series([
|
async.series([
|
||||||
db.init,
|
function (next) {
|
||||||
|
db.init(next);
|
||||||
|
},
|
||||||
function (next) {
|
function (next) {
|
||||||
meta = require('../meta');
|
meta = require('../meta');
|
||||||
meta.themes.setupPaths(next);
|
meta.themes.setupPaths(next);
|
||||||
|
|||||||
Reference in New Issue
Block a user