Update API method to get all weekly reports

This commit is contained in:
Davenludd 2024-04-03 18:05:07 +02:00
parent 520e2f74f0
commit c0d36f8df1

View file

@ -17,7 +17,7 @@ function AllTimeReportsInProject(): JSX.Element {
useEffect(() => {
const getWeeklyReports = async (): Promise<void> => {
const token = localStorage.getItem("accessToken") ?? "";
const response = await api.getWeeklyReportsForUser(
const response = await api.getAllWeeklyReportsForUser(
projectName ?? "",
token,
);