From 5fb29db2db04bc128af410867f1f602320eb5d66 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sat, 5 Nov 2022 23:33:05 +0800 Subject: refactor(db): migrate methods off and delete deprecated methods from `user.go` (#7231) --- internal/context/org.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/context/org.go') 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 -- cgit v1.2.3