mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
fix xorm NewSession uncorrected usages (#774)
This commit is contained in:
parent
25663b5816
commit
bb5a6b7a07
6 changed files with 23 additions and 33 deletions
|
@ -14,7 +14,6 @@ type Star struct {
|
|||
// StarRepo or unstar repository.
|
||||
func StarRepo(userID, repoID int64, star bool) error {
|
||||
sess := x.NewSession()
|
||||
|
||||
defer sess.Close()
|
||||
|
||||
if err := sess.Begin(); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue