]> source.dussan.org Git - gitea.git/commit
Fix delete nonexist oauth application 500 and prevent deadlock (#15384) (#15397)
authorLunny Xiao <xiaolunwen@gmail.com>
Sun, 11 Apr 2021 02:57:23 +0000 (10:57 +0800)
committerGitHub <noreply@github.com>
Sun, 11 Apr 2021 02:57:23 +0000 (04:57 +0200)
commit015d11d26dd596703b40c0cc4121026282b9bbd3
tree25a7235715c8f84cb3656cfbb2dc4b58a0b3380b
parent62fbca3af4cfaedc796e23ddb3544c7aaf846184
Fix delete nonexist oauth application 500 and prevent deadlock (#15384) (#15397)

* Fix delete nonexist oauth application 500

* Fix test

* Close the session

* Fix more missed sess.Close

* Remove unnecessary blank line

Signed-off-by: Andrew Thornton <art27@cantab.net>
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