quick fix for getUserProjects API

This commit is contained in:
al8763be 2024-03-19 00:26:17 +01:00
parent 83f8097c2b
commit 59c4dab2e2

View file

@ -150,10 +150,7 @@ export const api: API = {
}
},
async getUserProjects(
username: string,
token: string,
): Promise<APIResponse<Project[]>> {
async getUserProjects(token: string): Promise<APIResponse<Project[]>> {
try {
const response = await fetch("/api/getUserProjects", {
method: "GET",
@ -161,7 +158,6 @@ export const api: API = {
"Content-Type": "application/json",
Authorization: "Bearer " + token,
},
body: JSON.stringify({ username }),
});
if (!response.ok) {