mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
parseInt member count, use getMemberCount in install js
This commit is contained in:
@@ -294,8 +294,11 @@ function enableDefaultTheme(next) {
|
||||
|
||||
function createAdministrator(next) {
|
||||
var Groups = require('./groups');
|
||||
Groups.get('administrators', {}, function (err, groupObj) {
|
||||
if (!err && groupObj && groupObj.memberCount > 0) {
|
||||
Groups.getMemberCount('administrators', function (err, memberCount) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
if (memberCount > 0) {
|
||||
process.stdout.write('Administrator found, skipping Admin setup\n');
|
||||
next();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user