Skip to content

Commit

Permalink
remove userid from request headers in user service
Browse files Browse the repository at this point in the history
  • Loading branch information
linxiaoxin committed Sep 18, 2024
1 parent 0d49bdb commit 43b346f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/UserService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export const UserService = {
},

async updateClass(data: Class) {
return (await api<UserServiceResponse<ClassResponse[]>>({ url: classUrl, body: JSON.stringify(data), method: "PUT", userId: '8da3cf6e-2822-4ea9-8cfc-4a83f3c4b7a2' })).payload;
return (await api<UserServiceResponse<ClassResponse[]>>({ url: classUrl, body: JSON.stringify(data), method: "PUT" })).payload;
},

async getClasses() {
return (await api<UserServiceResponse<ClassResponse[]>>({ url: getAllClassesUrl, userId: '8da3cf6e-2822-4ea9-8cfc-4a83f3c4b7a2' })).payload;
return (await api<UserServiceResponse<ClassResponse[]>>({ url: getAllClassesUrl })).payload;
},

async acceptInvitation(studentInvitation: StudentInvitation) {
Expand Down

0 comments on commit 43b346f

Please sign in to comment.