From eace1295eae19d39918180b83f75389bdbfe950c Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Mon, 27 Apr 2015 15:55:42 -0300 Subject: [PATCH] add preferences to wallet status --- lib/expressapp.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/expressapp.js b/lib/expressapp.js index 4b7dad2..1bdad35 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -178,6 +178,13 @@ ExpressApp.prototype.start = function(opts, cb) { next(); }); }, + function(next) { + server.getPreferences({}, function(err, preferences) { + if (err) return next(err); + result.preferences = preferences; + next(); + }); + }, ], function(err) { if (err) return returnError(err, res, req); res.json(result);