We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bd8a9c commit 0cedb2eCopy full SHA for 0cedb2e
1 file changed
src/api/user/profile/work/changeScriptApi.ts
@@ -34,9 +34,14 @@ export const PostChangeScript = async (
34
const formData = new FormData();
35
formData.append("script", scriptFile);
36
37
- const response = await api.post<boolean>(`/profile/work/changeScript/${id}`, formData, {
38
- withCredentials: true,
39
- });
+ const response = await api.post<boolean>(
+ `/profile/work/changeScript`,
+ formData,
40
+ {
41
+ params: { id },
42
+ withCredentials: true,
43
+ }
44
+ );
45
46
return response.data;
47
} catch (error) {
0 commit comments