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

* 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