forked from jamesp/sasa-membership
User search and edit
This commit is contained in:
@@ -171,10 +171,10 @@ export const userService = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
async updateUserRole(userId: number, role: string): Promise<User> {
|
||||
const response = await api.put(`/users/${userId}`, { role });
|
||||
async updateUser(userId: number, data: Partial<User>): Promise<User> {
|
||||
const response = await api.put(`/users/${userId}`, data);
|
||||
return response.data;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export const membershipService = {
|
||||
|
||||
Reference in New Issue
Block a user