diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-08-16 21:31:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-16 21:31:08 +0800 |
commit | a961afe52bf94f71e917e05e366a4b71834a2e84 (patch) | |
tree | 707888480fd9e01a74ce636100cef93e5fe4e635 /internal/db | |
parent | f667d139bc3a8ff795e7c6e1b980ab1997e428e2 (diff) |
db: fix update team panic (#6253)
* db: fix update team panic
* Update CHANGELOG
Diffstat (limited to 'internal/db')
-rw-r--r-- | internal/db/org_team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/org_team.go b/internal/db/org_team.go index 9daca9e7..b2d6fd56 100644 --- a/internal/db/org_team.go +++ b/internal/db/org_team.go @@ -348,7 +348,7 @@ func UpdateTeam(t *Team, authChanged bool) (err error) { t.LowerName = strings.ToLower(t.Name) existingTeam := new(Team) - has, err := x.Where("org_id=?", t.OrgID).And("lower_name=?", t.LowerName).And("id!=?", t.ID).Get(&existingTeam) + has, err := x.Where("org_id=?", t.OrgID).And("lower_name=?", t.LowerName).And("id!=?", t.ID).Get(existingTeam) if err != nil { return err } else if has { |