diff --git a/frontend/src/Lib/Search.ts b/frontend/src/Lib/Search.ts index aa058ca..da98fb9 100644 --- a/frontend/src/Lib/Search.ts +++ b/frontend/src/Lib/Search.ts @@ -11,7 +11,7 @@ export interface SearchResult { } export const search = async (searchTerm: string, serverId: string): Promise> => { - const response = await axios.get>(encodeURI(`${apiUrl}/search?searchTerm=${searchTerm}&serverId=${serverId}`), { withCredentials: true }); + const response = await axios.get>(encodeURI(`${apiUrl}/search?searchTerm=${searchTerm}&serverUrl=${serverId}`), { withCredentials: true }); return response.data; }