Skip to content

Commit de066c4

Browse files
committed
use sess if exist!
1 parent c1e0b9a commit de066c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/oauth2_application.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func UpdateOAuth2Application(opts UpdateOAuth2ApplicationOptions) (*OAuth2Applic
214214
app.Name = opts.Name
215215
app.RedirectURIs = opts.RedirectURIs
216216

217-
if err = updateOAuth2Application(x, app); err != nil {
217+
if err = updateOAuth2Application(sess, app); err != nil {
218218
return nil, err
219219
}
220220
app.ClientSecret = ""

0 commit comments

Comments
 (0)