Skip to content

Commit

Permalink
use sess if exist!
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Apr 27, 2020
1 parent c1e0b9a commit de066c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/oauth2_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func UpdateOAuth2Application(opts UpdateOAuth2ApplicationOptions) (*OAuth2Applic
app.Name = opts.Name
app.RedirectURIs = opts.RedirectURIs

if err = updateOAuth2Application(x, app); err != nil {
if err = updateOAuth2Application(sess, app); err != nil {
return nil, err
}
app.ClientSecret = ""
Expand Down

0 comments on commit de066c4

Please sign in to comment.