diff --git a/core/server/api/canary/webhooks.js b/core/server/api/canary/webhooks.js index b0b49fef95..be39ec07bc 100644 --- a/core/server/api/canary/webhooks.js +++ b/core/server/api/canary/webhooks.js @@ -98,7 +98,7 @@ module.exports = { if (webhook.get('integration_id') !== frame.options.context.api_key.id) { throw new errors.NoPermissionError({ message: i18n.t('errors.api.webhooks.noPermissionToEdit.message', { - method: 'destory' + method: 'destroy' }), context: i18n.t('errors.api.webhooks.noPermissionToEdit.context', { method: 'destroy' diff --git a/core/server/api/v2/webhooks.js b/core/server/api/v2/webhooks.js index f4ba77b39c..c0afb9dacc 100644 --- a/core/server/api/v2/webhooks.js +++ b/core/server/api/v2/webhooks.js @@ -108,7 +108,7 @@ module.exports = { if (webhook.get('integration_id') !== frame.options.context.api_key.id) { throw new errors.NoPermissionError({ message: i18n.t('errors.api.webhooks.noPermissionToEdit.message', { - method: 'destory' + method: 'destroy' }), context: i18n.t('errors.api.webhooks.noPermissionToEdit.context', { method: 'destroy'