mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
Upgrade mongoose (#10767)
* fix mongoose and upgrade * fix more validations
This commit is contained in:
@@ -8,7 +8,7 @@ module.exports = function baseModel (schema, options = {}) {
|
||||
_id: {
|
||||
type: String,
|
||||
default: uuid,
|
||||
validate: [validator.isUUID, 'Invalid uuid.'],
|
||||
validate: [v => validator.isUUID(v), 'Invalid uuid.'],
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user