Skip to content

Commit

Permalink
fix(delete-hooks): Wrong argument mapping in getScopeForDeleteHooks()
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Jul 22, 2018
1 parent b42ea1a commit 5c91046
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,11 @@ class Model extends Entity {
return null;
}
} else {
([ancestors, namespace,,, key] = args);
({
1: ancestors,
2: namespace,
4: key,
} = args);
}

if (!id && !ancestors && !namespace && !key) {
Expand Down

0 comments on commit 5c91046

Please sign in to comment.