Skip to content

Node.js based forum software built for the modern web

incr on user create

barisusakli8acb0ca30416
diff --git a/src/user/create.js b/src/user/create.js
index 9ce768b9ef..f1ad7f9294 100644
--- a/src/user/create.js
+++ b/src/user/create.js
@@ -141,7 +141,7 @@ module.exports = function(User) {
], next);
},
function(results, next) {
- User.updateUserCount(next);
+ db.incrObjectField('global', 'userCount', next);
},
function(next) {
if (userNameChanged) {