mirror of
https://gitee.com/gitea/gitea
synced 2025-12-31 12:46:34 +08:00
fix xorm NewSession uncorrected usages (#774)
This commit is contained in:
@@ -309,7 +309,7 @@ func UpdateTeam(t *Team, authChanged bool) (err error) {
|
||||
}
|
||||
|
||||
t.LowerName = strings.ToLower(t.Name)
|
||||
has, err := x.
|
||||
has, err := sess.
|
||||
Where("org_id=?", t.OrgID).
|
||||
And("lower_name=?", t.LowerName).
|
||||
And("id!=?", t.ID).
|
||||
|
||||
Reference in New Issue
Block a user