feat: update user display name mutation added
This commit is contained in:
committed by
Andrew Bastin
parent
9ceef43c74
commit
a4c889e38d
@@ -118,6 +118,19 @@ export class AdminService {
|
||||
return E.right(invitedUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the display name of a user
|
||||
* @param userUid Who's display name is being updated
|
||||
* @param displayName New display name of the user
|
||||
* @returns an Either of boolean or error
|
||||
*/
|
||||
async updateUserDisplayName(userUid: string, displayName: string) {
|
||||
const updatedUser = await this.userService.updateUser(userUid, displayName);
|
||||
if (E.isLeft(updatedUser)) return E.left(updatedUser.left);
|
||||
|
||||
return E.right(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Revoke infra level user invitation
|
||||
* @param inviteeEmail Invitee's email
|
||||
|
||||
Reference in New Issue
Block a user