From 744e4579b7db1651ec72eb0806a2c9a13aa51a7b Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Wed, 24 Jul 2013 13:12:56 -0400 Subject: [PATCH] setUserFields --- src/user.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/user.js b/src/user.js index 2675431f2f..2c56c4a607 100644 --- a/src/user.js +++ b/src/user.js @@ -316,6 +316,10 @@ var utils = require('./../public/src/utils.js'), RDB.hset('user:' + uid, field, value); } + User.setUserFields = function(uid, data) { + RDB.hmset('user:' + uid, data); + } + User.incrementUserFieldBy = function(uid, field, value) { RDB.hincrby('user:' + uid, field, value); }