ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-843 WIP rework server side to promises.
Date Tue, 16 Feb 2016 00:09:58 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 389c66256 -> ba69d6345


IGNITE-843 WIP rework server side to promises.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/ba69d634
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/ba69d634
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/ba69d634

Branch: refs/heads/ignite-843-rc2
Commit: ba69d6345734445457f90bd705f8835862b82465
Parents: 389c662
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Tue Feb 16 07:09:54 2016 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Tue Feb 16 07:09:54 2016 +0700

----------------------------------------------------------------------
 modules/control-center-web/src/main/js/serve/routes/admin.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ba69d634/modules/control-center-web/src/main/js/serve/routes/admin.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/serve/routes/admin.js b/modules/control-center-web/src/main/js/serve/routes/admin.js
index 0736277..50488b1 100644
--- a/modules/control-center-web/src/main/js/serve/routes/admin.js
+++ b/modules/control-center-web/src/main/js/serve/routes/admin.js
@@ -40,9 +40,14 @@ module.exports.factory = function(_, express, nodemailer, settings, mongo)
{
         // Remove user.
         router.post('/remove', (req, res) => {
             const userId = req.body.userId;
+            let user = {};
 
             mongo.Account.findByIdAndRemove(userId).exec()
-                .then(() => mongo.spaces(userId))
+                .then((removedUser) => {
+                    user = removedUser;
+
+                    return mongo.spaces(userId);
+                })
                 .then((spaces) => {
                     const promises = [];
 


Mime
View raw message