aboutsummaryrefslogtreecommitdiff
path: root/internal/route/api
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-06-11 12:43:56 +0800
committerGitHub <noreply@github.com>2022-06-11 12:43:56 +0800
commit1df62fafb99c03d4d3d4b26c99839d165d5425da (patch)
treeda9308befb456e888518ef397bbe49ae6e510d53 /internal/route/api
parent5e32058c13f34b46c69b7cdee6ccc0b7fe3b6df3 (diff)
db: use `context` and go-mockgen for `ReposStore` (#7046)
Diffstat (limited to 'internal/route/api')
-rw-r--r--internal/route/api/v1/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/api/v1/api.go b/internal/route/api/v1/api.go
index 9d256e3e..a517c6df 100644
--- a/internal/route/api/v1/api.go
+++ b/internal/route/api/v1/api.go
@@ -45,7 +45,7 @@ func repoAssignment() macaron.Handler {
}
c.Repo.Owner = owner
- repo, err := db.Repos.GetByName(owner.ID, reponame)
+ repo, err := db.Repos.GetByName(c.Req.Context(), owner.ID, reponame)
if err != nil {
c.NotFoundOrError(err, "get repository by name")
return