Fixed typos in webhook error message

no issue
This commit is contained in:
Daniel Lockyer 2020-07-20 09:05:56 +01:00
parent 32a043c27c
commit d261f88456
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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'