You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2017/10/25 09:58:55 UTC

[03/50] [abbrv] ignite git commit: IGNITE-6647 Added missing Mongo injector.

IGNITE-6647 Added missing Mongo injector.


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

Branch: refs/heads/ignite-5937
Commit: 173ecef0fadfeeaf2ffe03e5109962fce01c048e
Parents: 3a9fcd4
Author: Alexey Kuznetsov <ak...@apache.org>
Authored: Fri Oct 20 11:23:23 2017 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Fri Oct 20 11:23:23 2017 +0700

----------------------------------------------------------------------
 modules/web-console/backend/index.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/173ecef0/modules/web-console/backend/index.js
----------------------------------------------------------------------
diff --git a/modules/web-console/backend/index.js b/modules/web-console/backend/index.js
index 06a38f8..8454789 100644
--- a/modules/web-console/backend/index.js
+++ b/modules/web-console/backend/index.js
@@ -122,8 +122,8 @@ const migrate = (dbConnectionUri, group, migrationsPath) => {
         });
 };
 
-injector('settings')
-    .then(({mongoUrl}) => {
+Promise.all([injector('settings'), injector('mongo')])
+    .then(([{mongoUrl}]) => {
         return migrate(mongoUrl, 'Ignite', path.join(__dirname, 'migrations'))
             .then(() => migrate(mongoUrl, 'Ignite Modules', path.join(igniteModules, 'migrations')));
     })