aboutsummaryrefslogtreecommitdiff
path: root/internal/route/org/teams.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/route/org/teams.go
parentb5d47b969258f3d644ad797b29901eb607f6b94f (diff)
refactor(db): migrate methods off and delete deprecated methods from `user.go` (#7231)
Diffstat (limited to 'internal/route/org/teams.go')
-rw-r--r--internal/route/org/teams.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/org/teams.go b/internal/route/org/teams.go
index c681ec9f..7f932f3f 100644
--- a/internal/route/org/teams.go
+++ b/internal/route/org/teams.go
@@ -71,7 +71,7 @@ func TeamsAction(c *context.Context) {
}
uname := c.Query("uname")
var u *db.User
- u, err = db.GetUserByName(uname)
+ u, err = db.Users.GetByUsername(c.Req.Context(), uname)
if err != nil {
if db.IsErrUserNotExist(err) {
c.Flash.Error(c.Tr("form.user_not_exist"))