mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Suspend user in the UI (#1841)
This commit is contained in:
+1
-1
@@ -219,7 +219,7 @@ export const updateProfile = async (
|
||||
}
|
||||
|
||||
export const suspendUser = async (userId: TypesGen.User["id"]): Promise<TypesGen.User> => {
|
||||
const response = await axios.put<TypesGen.User>(`/api/v2/users/${userId}/suspend`)
|
||||
const response = await axios.put<TypesGen.User>(`/api/v2/users/${userId}/status/suspend`)
|
||||
return response.data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user