Skip to content

Commit e5d564b

Browse files
authored
Merge pull request #40 from IONISx/tusbar/fix-key-order
Update mongoose to 4.6.4 to fix _id key order
2 parents d27c5fd + 481ee36 commit e5d564b

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

lib/models/module.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ var schemaOptions = {
1010
_id: false,
1111
collection: 'modulestore',
1212
discriminatorKey: '_id.category',
13-
toObject: {
14-
retainKeyOrder: true
15-
}
13+
retainKeyOrder: true
1614
};
1715

1816
var extend = function (schema, options) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"bluebird": "^3.3.4",
1717
"lodash": "^4.8.2",
1818
"moment": "^2.12.0",
19-
"mongoose": "^4.4.11",
19+
"mongoose": "^4.6.5",
2020
"mongoose-long": "~0.1.0"
2121
},
2222
"devDependencies": {

0 commit comments

Comments
 (0)