We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70602d9 commit bfef790Copy full SHA for bfef790
src/ui/services/user.ts
@@ -71,11 +71,8 @@ const getUsers = async (
71
72
const updateUser = async (data: UserData): Promise<void> => {
73
console.log(data);
74
- // todo fix
75
- const url = new URL(`${API_BASE}/api/auth/gitAccount`);
76
-
77
try {
78
- await axios.post(url.toString(), data, getAxiosConfig());
+ await axios.post(`${API_BASE}/api/auth/gitAccount`, data, getAxiosConfig());
79
} catch (error) {
80
const axiosError = error as AxiosError;
81
if (axiosError.response) {
0 commit comments