Created
July 22, 2011 20:30
Revisions
-
Randall Bennett created this gist
Jul 22, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ exports.register = function(req, res, next) { var client; client = this.client; return exports.validate(req, res, function() { return client.hmset("person:" + req.body.wid, req.body, function(err, response) { if (err != null) { return next(err); } else { req.newUser = req.body; console.log("success. Saved record."); return next; } }); }); };