mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Upgrade mongoose (#10767)
* fix mongoose and upgrade * fix more validations
This commit is contained in:
@@ -39,7 +39,7 @@ export let schema = new Schema({
|
||||
id: {
|
||||
type: String,
|
||||
default: uuid,
|
||||
validate: [validator.isUUID, 'Invalid uuid.'],
|
||||
validate: [v => validator.isUUID(v), 'Invalid uuid.'],
|
||||
// @TODO: Add these back once we figure out the issue with notifications
|
||||
// See Fix for https://github.com/HabitRPG/habitica/issues/9923
|
||||
// required: true,
|
||||
|
||||
Reference in New Issue
Block a user