diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-06-03 14:13:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 02:13:58 -0400 |
commit | e09fb30d34d1bab8ec51afa16745ea2d546f9355 (patch) | |
tree | 8a2f9d12ff2808500d6fdbabd841a7e7c1a296cc /models/repo.go | |
parent | 0c759fd4dee1c2a82ecdb0a6019d8ee78dae2209 (diff) | |
download | gitea-e09fb30d34d1bab8ec51afa16745ea2d546f9355.tar.gz gitea-e09fb30d34d1bab8ec51afa16745ea2d546f9355.zip |
improvement some release related code (#19867)
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index bf70295275..6c3dca41be 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1144,7 +1144,7 @@ func LinkedRepository(a *repo_model.Attachment) (*repo_model.Repository, unit.Ty } return repo, unitType, err } else if a.ReleaseID != 0 { - rel, err := GetReleaseByID(a.ReleaseID) + rel, err := GetReleaseByID(db.DefaultContext, a.ReleaseID) if err != nil { return nil, unit.TypeReleases, err } |