From 43b346f25968c5578b08692d6843ed641c95442a Mon Sep 17 00:00:00 2001 From: linxiaoxin Date: Wed, 18 Sep 2024 18:29:00 +0800 Subject: [PATCH] remove userid from request headers in user service --- service/UserService.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/UserService.tsx b/service/UserService.tsx index b7b9425..2bb8ee2 100644 --- a/service/UserService.tsx +++ b/service/UserService.tsx @@ -24,11 +24,11 @@ export const UserService = { }, async updateClass(data: Class) { - return (await api>({ url: classUrl, body: JSON.stringify(data), method: "PUT", userId: '8da3cf6e-2822-4ea9-8cfc-4a83f3c4b7a2' })).payload; + return (await api>({ url: classUrl, body: JSON.stringify(data), method: "PUT" })).payload; }, async getClasses() { - return (await api>({ url: getAllClassesUrl, userId: '8da3cf6e-2822-4ea9-8cfc-4a83f3c4b7a2' })).payload; + return (await api>({ url: getAllClassesUrl })).payload; }, async acceptInvitation(studentInvitation: StudentInvitation) {