Repository: ignite
Updated Branches:
  refs/heads/master 6733a4d1e -> eaf094bdd


IGNITE-7612 Web Console: Fixed ObjectId type.


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

Branch: refs/heads/master
Commit: eaf094bdd1181d17e0cc88329e14c52aaae3ba7a
Parents: 6733a4d
Author: Alexey Kuznetsov <akuznet...@apache.org>
Authored: Fri Mar 2 15:15:17 2018 +0700
Committer: Alexey Kuznetsov <akuznet...@apache.org>
Committed: Fri Mar 2 15:15:17 2018 +0700

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/eaf094bd/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 661d6f9..61f1484 100644
--- a/modules/web-console/backend/app/mongo.js
+++ b/modules/web-console/backend/app/mongo.js
@@ -30,10 +30,9 @@ module.exports = {
 };
 
 const defineSchema = (mongoose, schemas) => {
-    const ObjectId = mongoose.Schema.Types.ObjectId;
     const result = { connection: mongoose.connection };
 
-    result.ObjectId = ObjectId;
+    result.ObjectId = mongoose.Types.ObjectId;
 
     result.errCodes = {
         DUPLICATE_KEY_ERROR: 11000,

Reply via email to