From 9b5c8de541d8293a6b93955a5dea36c9aff7c3b0 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sun, 5 May 2013 22:54:38 -0400 Subject: [PATCH] setUserField --- src/user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/user.js b/src/user.js index 6cdf65414b..caabc52e53 100644 --- a/src/user.js +++ b/src/user.js @@ -48,6 +48,9 @@ var config = require('../config.js'), }); } + User.setUserField = function(uid, field, value) { + RDB.db.hset(String(uid), field, value); + } User.get_gravatars_by_uids = function(uids, size, callback) {