]> source.dussan.org Git - gitea.git/commit
Fix delete nonexist oauth application 500 and prevent deadlock (#15384)
authorLunny Xiao <xiaolunwen@gmail.com>
Sat, 10 Apr 2021 20:49:10 +0000 (04:49 +0800)
committerGitHub <noreply@github.com>
Sat, 10 Apr 2021 20:49:10 +0000 (16:49 -0400)
commit1fc1d605178ead73e31d6e068af3f3e38c28a803
treea2889951382b582255bc0bec51669fe6d41b6e14
parentc680eb2cc74823f017f5ad5a4c9e8094cde311f4
Fix delete nonexist oauth application 500 and prevent deadlock (#15384)

* Fix delete nonexist oauth application 500

* Fix test

* Close the session

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update integrations/api_oauth2_apps_test.go

* Fix more missed sess.Close

* Remove unnecessary blank line

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
integrations/api_oauth2_apps_test.go
models/migrate.go
models/oauth2_application.go
routers/api/v1/user/app.go