diff options
Diffstat (limited to 'internal/route/org/members.go')
-rw-r--r-- | internal/route/org/members.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/org/members.go b/internal/route/org/members.go index c4ad3306..c8516b72 100644 --- a/internal/route/org/members.go +++ b/internal/route/org/members.go @@ -97,7 +97,7 @@ func Invitation(c *context.Context) { if c.Req.Method == "POST" { uname := c.Query("uname") - 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")) |