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

remove references to db.DefaultContext

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-22 19:01:48 -05:00
parent 052f1d3a2f
commit 70a3f779f1
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -3,7 +3,6 @@ package group
import (
"context"
"code.gitea.io/gitea/models/db"
group_model "code.gitea.io/gitea/models/group"
repo_model "code.gitea.io/gitea/models/repo"
user_model "code.gitea.io/gitea/models/user"
@ -25,7 +24,7 @@ func (repo *groupItemRepo) Parent() Item {
if repo.Repo.GroupID == 0 {
return nil
}
group, _ := group_model.GetGroupByID(db.DefaultContext, repo.Repo.GroupID)
group, _ := group_model.GetGroupByID(context.TODO(), repo.Repo.GroupID)
return &groupItemGroup{group}
}