Skip to content

Commit

Permalink
Merge pull request #526 from auth0/fix-updateRule-not-found
Browse files Browse the repository at this point in the history
Fixing error where updateRules was undefined
  • Loading branch information
willvedd authored May 4, 2022
2 parents 7b5cfb0 + 8f6e9cf commit ec5ff65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tools/auth0/handlers/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ export default class RulesHandler extends DefaultHandler {
.addEachTask({
data: changes.reOrder,
generator: (rule) =>
this.client
.updateRule({ id: rule.id }, stripFields(rule, this.stripUpdateFields))
this.client.rules
.update({ id: rule.id }, stripFields(rule, this.stripUpdateFields))
.then(() => {
const updated = {
name: rule.name,
Expand Down
1 change: 0 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export type BaseAuth0APIClient = {
triggers: APIClientBaseFunctions & {
getTriggerBindings: () => Promise<Asset>;
};
updateRule: (arg0: { id: string }, arg1: Asset) => Promise<Asset>;
}; // TODO: replace with a more accurate representation of the Auth0APIClient type

export type Auth0APIClient = BaseAuth0APIClient & {
Expand Down

0 comments on commit ec5ff65

Please sign in to comment.