Merge branch 'master' of github.com:designcreateplay/NodeBB

v1.18.x
Julian Lam 12 years ago
commit 1f8f61d1d8

@ -316,6 +316,10 @@ var utils = require('./../public/src/utils.js'),
RDB.hset('user:' + uid, field, value); RDB.hset('user:' + uid, field, value);
} }
User.setUserFields = function(uid, data) {
RDB.hmset('user:' + uid, data);
}
User.incrementUserFieldBy = function(uid, field, value) { User.incrementUserFieldBy = function(uid, field, value) {
RDB.hincrby('user:' + uid, field, value); RDB.hincrby('user:' + uid, field, value);
} }

Loading…
Cancel
Save