ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [27/51] [abbrv] ignite git commit: IGNITE-3262 Fixed API middleware - removed arrow function(context problem).
Date Fri, 01 Jul 2016 07:18:14 GMT
IGNITE-3262 Fixed API middleware - removed arrow function(context problem).


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

Branch: refs/heads/ignite-3262
Commit: 0301301bf443dadfc58cad25eb4bef02f85e521e
Parents: a265738
Author: Maxim Afanasiev <mafkus@gmail.com>
Authored: Thu Jun 30 10:27:56 2016 +0700
Committer: Maxim Afanasiev <mafkus@gmail.com>
Committed: Thu Jun 30 10:27:56 2016 +0700

----------------------------------------------------------------------
 .../web-console/src/main/js/serve/middlewares/api.js  | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/0301301b/modules/web-console/src/main/js/serve/middlewares/api.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/serve/middlewares/api.js b/modules/web-console/src/main/js/serve/middlewares/api.js
index d8565e4..2607b97 100644
--- a/modules/web-console/src/main/js/serve/middlewares/api.js
+++ b/modules/web-console/src/main/js/serve/middlewares/api.js
@@ -19,20 +19,20 @@
 
 // Fire me up!
 
-const sendServerError = (err) => {
+function sendServerError(err) {
     err.httpCode = 500;
 
     this.api.error(err)
-};
+}
 
-const sendError = (err) => {
+function sendError(err) {
     // TODO: removed code from error
     this.status(err.httpCode || err.code || 500).send(err.message);
-};
+}
 
-const sendOk = (data) => {
+function sendOk(data) {
     this.status(200).json(data);
-};
+}
 
 module.exports = {
     implements: 'middlewares/api',
@@ -47,4 +47,4 @@ module.exports = {
             next();
         };
     }
-};
\ No newline at end of file
+};


Mime
View raw message