Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
luisbritos committed Dec 22, 2020
1 parent e57e9bb commit 0079451
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/auth0/handlers/actionBindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}

Expand Down

0 comments on commit 0079451

Please sign in to comment.