ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [01/50] ignite git commit: IGNITE-843 Refactor serve to es6.
Date Tue, 16 Feb 2016 15:14:18 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc3 3eb0be4c0 -> ddf268ca0


IGNITE-843 Refactor serve to es6.


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

Branch: refs/heads/ignite-843-rc3
Commit: b1020f4600945616301032cc1c79b574e153319e
Parents: 42c70d8
Author: Andrey <anovikov@gridgain.com>
Authored: Mon Feb 15 09:48:53 2016 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Mon Feb 15 09:48:53 2016 +0700

----------------------------------------------------------------------
 modules/control-center-web/src/main/js/serve/routes/profile.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/b1020f46/modules/control-center-web/src/main/js/serve/routes/profile.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/serve/routes/profile.js b/modules/control-center-web/src/main/js/serve/routes/profile.js
index 5ce9b81..5a22010 100644
--- a/modules/control-center-web/src/main/js/serve/routes/profile.js
+++ b/modules/control-center-web/src/main/js/serve/routes/profile.js
@@ -56,7 +56,7 @@ module.exports.factory = function(_, express, mongo) {
                         return Promise.resolve(user);
 
                     return new Promise((resolve, reject) => {
-                        mongo.Account.findOne({email: params.email}, function (err, _user)
{
+                        mongo.Account.findOne({email: params.email}, (err, _user) => {
                             // TODO send error to admin
                             if (err)
                                 return reject('Failed to check e-mail!');
@@ -69,7 +69,7 @@ module.exports.factory = function(_, express, mongo) {
                     });
                 })
                 .then((user) => {
-                    for (var param in params) {
+                    for (const param in params) {
                         if (params.hasOwnProperty(param))
                             user[param] = params[param];
                     }


Mime
View raw message