Skip to content

Commit 0364553

Browse files
committed
fix: use correct createUser mutation name - fix #15
1 parent 73c0933 commit 0364553

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/src/users_create.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Examples:
3535
$username: String!,
3636
$email: String!,
3737
) {
38-
createUserBySiteAdmin(
38+
createUser(
3939
username: $username,
4040
email: $email,
4141
) {
@@ -44,7 +44,7 @@ Examples:
4444
}`
4545

4646
var result struct {
47-
CreateUserBySiteAdmin struct {
47+
CreateUser struct {
4848
ResetPasswordURL string
4949
}
5050
}
@@ -57,9 +57,9 @@ Examples:
5757
result: &result,
5858
done: func() error {
5959
fmt.Printf("User %q created.\n", *usernameFlag)
60-
if *resetPasswordURLFlag && result.CreateUserBySiteAdmin.ResetPasswordURL != "" {
60+
if *resetPasswordURLFlag && result.CreateUser.ResetPasswordURL != "" {
6161
fmt.Println()
62-
fmt.Printf("\tReset pasword URL: %s\n", result.CreateUserBySiteAdmin.ResetPasswordURL)
62+
fmt.Printf("\tReset pasword URL: %s\n", result.CreateUser.ResetPasswordURL)
6363
}
6464
return nil
6565
},

0 commit comments

Comments
 (0)