added rate services to wallet

This commit is contained in:
Ivan Socolsky 2014-11-05 22:05:09 -03:00
commit 015af22638
4 changed files with 25 additions and 11 deletions

View file

@ -86,7 +86,9 @@ Identity.create = function(opts, cb) {
opts = _.extend({}, opts);
var iden = new Identity(opts);
iden.store(_.extend(opts, {failIfExists: true}), function(err) {
iden.store(_.extend(opts, {
failIfExists: true
}), function(err) {
if (err) return cb(err);
return cb(null, iden);
});