diff options
Diffstat (limited to 'internal/route/repo/repo.go')
-rw-r--r-- | internal/route/repo/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/repo/repo.go b/internal/route/repo/repo.go index 943540c8..b9f9f988 100644 --- a/internal/route/repo/repo.go +++ b/internal/route/repo/repo.go @@ -47,7 +47,7 @@ func checkContextUser(c *context.Context, uid int64) *db.User { return c.User } - org, err := db.GetUserByID(uid) + org, err := db.Users.GetByID(c.Req.Context(), uid) if db.IsErrUserNotExist(err) { return c.User } |