feat(mongoose): upgrade mongoose to 5.0.17 to support Schema.Types.Decimal128

This commit is contained in:
OldHawk
2018-05-06 22:22:02 +08:00
parent e3be2dbede
commit 3b5c879a28
3 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ var UserDaysLogSchema = new Schema({
default: 0
},
score: {
type: Number,
type: Schema.Types.Decimal128,
default: 0
},
createdAt: {

View File

@@ -31,7 +31,7 @@ var UserMonthsLogSchema = new Schema({
default: 0
},
score: {
type: Number,
type: Schema.Types.Decimal128,
default: 0
},
createdAt: {

View File

@@ -90,7 +90,7 @@
"mocha": "~3.4.2",
"moment": "^2.18.1",
"mongodb-backup": "^1.6.9",
"mongoose": "^4.13.7",
"mongoose": "^5.0.17",
"morgan": "~1.8.1",
"moviedb": "^0.2.10",
"multer": "~1.3.0",