mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Upgrade mongoose (#10767)
* fix mongoose and upgrade * fix more validations
This commit is contained in:
@@ -34,7 +34,7 @@ export let schema = new Schema({
|
||||
id: {
|
||||
type: String,
|
||||
required: true,
|
||||
validate: [validator.isUUID, shared.i18n.t('invalidWebhookId')],
|
||||
validate: [v => validator.isUUID(v), shared.i18n.t('invalidWebhookId')],
|
||||
default: uuid,
|
||||
},
|
||||
type: {
|
||||
|
||||
Reference in New Issue
Block a user