0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-06 03:09:18 +02:00

fix nonexistent variable reference in GetGroupByID function

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2024-12-27 21:53:41 -05:00
parent 0ed90f83f9
commit 2ffbc4d2c0
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -102,7 +102,7 @@ func (g *Group) LoadOwner(ctx context.Context) error {
func (g *Group) GetGroupByID(ctx context.Context, id int64) (*Group, error) {
group := new(Group)
has, err := db.GetEngine(ctx).ID(id).Get(g)
has, err := db.GetEngine(ctx).ID(id).Get(group)
if err != nil {
return nil, err
} else if !has {