Skip to content

Commit

Permalink
Update function call to DatabaseUserResetPassword
Browse files Browse the repository at this point in the history
  • Loading branch information
sc-zenokerr committed Jul 4, 2024
1 parent 99a1b68 commit 3b349b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### To be Released

* feat(database/users): use API DatabaseUserPasswordReset method for resetting password
* feat(database/users): use API DatabaseUserResetPassword method for resetting password

### 1.32.0

Expand Down
2 changes: 1 addition & 1 deletion db/users/update_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func UpdateUserPassword(ctx context.Context, app, addonUUID, username string) er
return errors.Wrap(ctx, err, "update password of the given database user")
}
} else {
databaseUser, err = c.DatabaseUserPasswordReset(ctx, app, addonUUID, username)
databaseUser, err = c.DatabaseUserResetPassword(ctx, app, addonUUID, username)

Check failure on line 78 in db/users/update_password.go

View workflow job for this annotation

GitHub Actions / golangci-lint on a PR or from a tag

c.DatabaseUserResetPassword undefined (type *scalingo.Client has no field or method DatabaseUserResetPassword) (typecheck)

Check failure on line 78 in db/users/update_password.go

View workflow job for this annotation

GitHub Actions / golangci-lint on a PR or from a tag

c.DatabaseUserResetPassword undefined (type *scalingo.Client has no field or method DatabaseUserResetPassword)) (typecheck)

Check failure on line 78 in db/users/update_password.go

View workflow job for this annotation

GitHub Actions / Unit Tests

c.DatabaseUserResetPassword undefined (type *scalingo.Client has no field or method DatabaseUserResetPassword)
if err != nil {
return errors.Wrap(ctx, err, "reset the password of the given database user")
}
Expand Down

0 comments on commit 3b349b4

Please sign in to comment.