diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/admin_user_delete.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/admin_user_delete.go b/cmd/admin_user_delete.go index 328d5feb61..30d6d11576 100644 --- a/cmd/admin_user_delete.go +++ b/cmd/admin_user_delete.go @@ -57,7 +57,7 @@ func runDeleteUser(c *cli.Context) error { var err error var user *user_model.User if c.IsSet("email") { - user, err = user_model.GetUserByEmail(c.String("email")) + user, err = user_model.GetUserByEmail(ctx, c.String("email")) } else if c.IsSet("username") { user, err = user_model.GetUserByName(ctx, c.String("username")) } else { |