completionId: cgen-0316499baf6b4010a77c9e15885e69ad
cgen-0316499baf6b4010a77c9e15885e69ad
This commit is contained in:
parent
1c543e6e99
commit
aedd7cb79b
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ export const aethexSocialService = {
|
|||
async listMentorshipRequests(userId: string, role?: "mentor" | "mentee") {
|
||||
const qs = new URLSearchParams({ user_id: userId });
|
||||
if (role) qs.set("role", role);
|
||||
const resp = await fetch(`/api/mentorship/requests?${qs.toString()}`);
|
||||
const resp = await fetch(`${API_BASE}/api/mentorship/requests?${qs.toString()}`);
|
||||
if (!resp.ok) return [] as any[];
|
||||
return (await resp.json()) as any[];
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue