Rename createUser to newUser for consistency

This commit is contained in:
2021-12-11 18:45:48 +01:00
parent 33ade65420
commit 9a52c072d3
2 changed files with 7 additions and 7 deletions

View File

@@ -492,7 +492,7 @@ pub struct Mutation;
#[graphql_object(context = Context)]
impl Mutation {
async fn createUser(context: &Context, new_user: NewUser) -> FieldResult<ID> {
async fn newUser(context: &Context, new_user: NewUser) -> FieldResult<ID> {
let user: User = new_user.clone().into();
if !is_valid_user_name(&user.user_name) {
return Err(format!("{:?} is not a valid username", user.user_name).into());