schema-fix

This commit is contained in:
tonyrewin 2022-10-04 17:30:17 +03:00
parent 5da27fffa5
commit 3202a70bed
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ async def register(_, _info, email: str, password: str = "", username: str = "")
if not password:
user = await auth_send_link(_, _info, email)
return user
return {"user": user}
@mutation.field("sendLink")

View File

@ -154,7 +154,7 @@ type Mutation {
# auth
refreshSession: AuthResult!
registerUser(email: String!, password: String, username: String): User!
registerUser(email: String!, password: String, username: String): AuthResult!
sendLink(email: String!): Result!
confirmEmail(code: String!): AuthResult!