Skip to content

Commit

Permalink
refactor: rename new_status endpoint --> new-status
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Apr 15, 2024
1 parent f7bfd0d commit 1cb5755
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/tasks_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def get_specific_task(task_id: int, db: Session = Depends(database.get_db)


@router.post(
"/{task_id}/new_status/{new_status}", response_model=tasks_schemas.TaskHistoryOut
"/{task_id}/new-status/{new_status}", response_model=tasks_schemas.TaskHistoryOut
)
async def update_task_status(
task_id: int,
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/components/DialogTaskActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function Dialog({ taskId, feature, map, view }) {
if (body.hasOwnProperty('id')) {
dispatch(
ProjectTaskStatus(
`${import.meta.env.VITE_API_URL}/tasks/${taskId}/new_status/${status}`,
`${import.meta.env.VITE_API_URL}/tasks/${taskId}/new-status/${status}`,
geoStyle,
taskBoundaryData,
currentProjectId,
Expand Down

0 comments on commit 1cb5755

Please sign in to comment.