aboutsummaryrefslogtreecommitdiff
path: root/internal/context/org.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-11-05 23:33:05 +0800
committerGitHub <noreply@github.com>2022-11-05 23:33:05 +0800
commit5fb29db2db04bc128af410867f1f602320eb5d66 (patch)
tree9d0b86702d872f8f5ab7d0691e511c52f38fde34 /internal/context/org.go
parentb5d47b969258f3d644ad797b29901eb607f6b94f (diff)
refactor(db): migrate methods off and delete deprecated methods from `user.go` (#7231)
Diffstat (limited to 'internal/context/org.go')
-rw-r--r--internal/context/org.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/context/org.go b/internal/context/org.go
index 3a20e8f6..389677af 100644
--- a/internal/context/org.go
+++ b/internal/context/org.go
@@ -47,7 +47,7 @@ func HandleOrgAssignment(c *Context, args ...bool) {
orgName := c.Params(":org")
var err error
- c.Org.Organization, err = db.GetUserByName(orgName)
+ c.Org.Organization, err = db.Users.GetByUsername(c.Req.Context(), orgName)
if err != nil {
c.NotFoundOrError(err, "get organization by name")
return