feat(profile): add capability to update user's full name
This commit is contained in:
@@ -4,6 +4,7 @@ type Params = {
|
||||
input: {
|
||||
email: string;
|
||||
password: string;
|
||||
fullName: string;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -15,6 +16,7 @@ const updateUser = async (
|
||||
const user = await context.currentUser.$query().patchAndFetch({
|
||||
email: params.input.email,
|
||||
password: params.input.password,
|
||||
fullName: params.input.fullName,
|
||||
});
|
||||
|
||||
return user;
|
||||
|
@@ -351,6 +351,7 @@ input CreateUserInput {
|
||||
input UpdateUserInput {
|
||||
email: String
|
||||
password: String
|
||||
fullName: String
|
||||
}
|
||||
|
||||
input ForgotPasswordInput {
|
||||
|
Reference in New Issue
Block a user