User search and edit

This commit is contained in:
James Pattinson
2025-11-10 19:35:37 +00:00
parent 731c615d07
commit ba21262854
2 changed files with 354 additions and 7 deletions
+3 -3
View File
@@ -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 = {