Repository: ignite
Updated Branches:
  refs/heads/master e5005d917 -> 9cc7cbfb5


IGNITE-6920 Minor fix.


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

Branch: refs/heads/master
Commit: 9cc7cbfb54d3211cea85c74e2a283674f4c0ed4f
Parents: e5005d9
Author: Andrey Novikov <[email protected]>
Authored: Fri Jan 19 11:35:30 2018 +0700
Committer: Andrey Novikov <[email protected]>
Committed: Fri Jan 19 11:35:30 2018 +0700

----------------------------------------------------------------------
 modules/web-console/backend/app/mongo.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/9cc7cbfb/modules/web-console/backend/app/mongo.js
----------------------------------------------------------------------
diff --git a/modules/web-console/backend/app/mongo.js 
b/modules/web-console/backend/app/mongo.js
index f65da03..bd03d6a 100644
--- a/modules/web-console/backend/app/mongo.js
+++ b/modules/web-console/backend/app/mongo.js
@@ -1166,6 +1166,7 @@ module.exports.factory = function(settings, mongoose) {
 
     // Connect to mongoDB database.
     return mongoose.connect(settings.mongoUrl, {server: {poolSize: 4}})
+        .then(() => defineSchema(mongoose))
         .catch(() => {
             console.log('Failed to connect to local MongoDB, will try to 
download and start embedded MongoDB');
 

Reply via email to