completionId: cgen-0316499baf6b4010a77c9e15885e69ad

cgen-0316499baf6b4010a77c9e15885e69ad
This commit is contained in:
Builder.io 2025-11-12 05:54:58 +00:00
parent 1c543e6e99
commit aedd7cb79b

View file

@ -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[];
},