aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd/serv.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cmd/serv.go')
-rw-r--r--internal/cmd/serv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/cmd/serv.go b/internal/cmd/serv.go
index 58a04dbb..518a52c0 100644
--- a/internal/cmd/serv.go
+++ b/internal/cmd/serv.go
@@ -161,7 +161,7 @@ func runServ(c *cli.Context) error {
repoName := strings.TrimSuffix(strings.ToLower(repoFields[1]), ".git")
repoName = strings.TrimSuffix(repoName, ".wiki")
- owner, err := db.GetUserByName(ownerName)
+ owner, err := db.Users.GetByUsername(context.Background(), ownerName)
if err != nil {
if db.IsErrUserNotExist(err) {
fail("Repository owner does not exist", "Unregistered owner: %s", ownerName)