From 0079451e678975a77efb167400d382ef55a90b1b Mon Sep 17 00:00:00 2001 From: Luis Britos Manriquez Date: Tue, 22 Dec 2020 16:09:55 -0300 Subject: [PATCH] fix typo --- src/auth0/handlers/actionBindings.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/auth0/handlers/actionBindings.js b/src/auth0/handlers/actionBindings.js index 4603934..a15f4df 100644 --- a/src/auth0/handlers/actionBindings.js +++ b/src/auth0/handlers/actionBindings.js @@ -67,20 +67,20 @@ export default class ActionBindingHandler extends DefaultHandler { async detachBinding(binding, detached) { const params = { trigger_id: binding.trigger_id }; const existing = await this.getType(); - let atacchedList = []; + let attachedList = []; existing.forEach((existingBinding) => { if (!existingBinding.detached) { - atacchedList.push({ id: existingBinding.id }); + attachedList.push({ id: existingBinding.id }); } }); if (!detached) { - atacchedList.push({ id: binding.id }); + attachedList.push({ id: binding.id }); } else { - atacchedList = atacchedList.filter(id => id === binding.id); + attachedList = attachedList.filter(id => id === binding.id); } delete params.binding_id; await this.client.actionBindings.updateList(params, { - bindings: atacchedList + bindings: attachedList }); }