Skip to content

Commit

Permalink
fix: resolve route ambiguity for /tasks/activity endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujanadh committed Nov 28, 2024
1 parent 7cbbd3c commit cf8550f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/app/tasks/task_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def add_new_task_event(
return await DbTaskEvent.create(db, new_event)


@router.get("/activity", response_model=list[task_schemas.TaskEventCount])
@router.get("/activity/", response_model=list[task_schemas.TaskEventCount])
async def task_activity(
project_id: int,
db: Annotated[Connection, Depends(db_conn)],
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/views/ProjectSubmissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ProjectSubmissions = () => {

useEffect(() => {
dispatch(
MappedVsValidatedTaskService(`${import.meta.env.VITE_API_URL}/tasks/activity?project_id=${projectId}&days=30`),
MappedVsValidatedTaskService(`${import.meta.env.VITE_API_URL}/tasks/activity/?project_id=${projectId}&days=30`),
);
}, []);

Expand Down

0 comments on commit cf8550f

Please sign in to comment.