mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Misc Webhooks Fixes (#12038)
* fix(webhooks): don t parse response as json * upgrade got to version 10 * remove old header * fix tests * fix email auth * add migration * update email error * split migration in two
This commit is contained in:
@@ -58,6 +58,8 @@ export const schema = new Schema({
|
||||
required: true,
|
||||
validate: [v => validator.isURL(v, {
|
||||
require_tld: !!IS_PRODUCTION, // eslint-disable-line camelcase
|
||||
require_protocol: true, // TODO migrate existing ones
|
||||
protocols: ['http', 'https'],
|
||||
}), shared.i18n.t('invalidUrl')],
|
||||
},
|
||||
enabled: { $type: Boolean, required: true, default: true },
|
||||
|
||||
Reference in New Issue
Block a user