From d261f8845630301a2f4c21807e6926578bd7f1cf Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Mon, 20 Jul 2020 09:05:56 +0100 Subject: [PATCH] Fixed typos in webhook error message no issue --- core/server/api/canary/webhooks.js | 2 +- core/server/api/v2/webhooks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'