mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 09:20:36 +00:00
Fix unclosed session bug (#2214)
This commit is contained in:
parent
7e12aac61c
commit
5f37944dff
1 changed files with 1 additions and 1 deletions
|
@ -1097,8 +1097,8 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {
|
||||||
sess = x.Limit(setting.UI.IssuePagingNum, start)
|
sess = x.Limit(setting.UI.IssuePagingNum, start)
|
||||||
} else {
|
} else {
|
||||||
sess = x.NewSession()
|
sess = x.NewSession()
|
||||||
defer sess.Close()
|
|
||||||
}
|
}
|
||||||
|
defer sess.Close()
|
||||||
|
|
||||||
if len(opts.IssueIDs) > 0 {
|
if len(opts.IssueIDs) > 0 {
|
||||||
sess.In("issue.id", opts.IssueIDs)
|
sess.In("issue.id", opts.IssueIDs)
|
||||||
|
|
Loading…
Reference in a new issue