Skip to content

Commit

Permalink
Update mongoose to 4.6.4 to fix _id key order
Browse files Browse the repository at this point in the history
  • Loading branch information
tusbar committed Oct 25, 2016
1 parent d27c5fd commit 481ee36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/models/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ var schemaOptions = {
_id: false,
collection: 'modulestore',
discriminatorKey: '_id.category',
toObject: {
retainKeyOrder: true
}
retainKeyOrder: true
};

var extend = function (schema, options) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"bluebird": "^3.3.4",
"lodash": "^4.8.2",
"moment": "^2.12.0",
"mongoose": "^4.4.11",
"mongoose": "^4.6.5",
"mongoose-long": "~0.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit 481ee36

Please sign in to comment.