diff --git a/frontend/src/API/API.ts b/frontend/src/API/API.ts index e25f1d7..647d11f 100644 --- a/frontend/src/API/API.ts +++ b/frontend/src/API/API.ts @@ -48,7 +48,7 @@ interface API { projectName: string, week: string, token: string, - ): Promise>; + ): Promise>; getWeeklyReportsForProject( username: string, projectName: string, @@ -254,7 +254,7 @@ export const api: API = { projectName: string, week: string, token: string, - ): Promise> { + ): Promise> { try { const response = await fetch("/api/getWeeklyReport", { method: "GET", @@ -268,7 +268,7 @@ export const api: API = { if (!response.ok) { return { success: false, message: "Failed to get weekly report" }; } else { - const data = (await response.json()) as NewWeeklyReport; + const data = (await response.json()) as WeeklyReport; return { success: true, data }; } } catch (e) { @@ -279,8 +279,8 @@ export const api: API = { async getWeeklyReportsForProject( username: string, projectName: string, - token: string, - ) { + token: string + ): Promise> { try { const response = await fetch("/api/getWeeklyReportsUser", { method: "GET",