Skip to content

Commit

Permalink
fix: Suspend user in the UI (#1841)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoQuaresma committed May 27, 2022
1 parent 4125863 commit 2b2d029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2b2d029

Please sign in to comment.