diff --git a/eve/api/api_requests.py b/eve/api/api_requests.py index ab4776d..0934385 100644 --- a/eve/api/api_requests.py +++ b/eve/api/api_requests.py @@ -13,7 +13,7 @@ class TaskRequest(BaseModel): class CancelRequest(BaseModel): - task_id: str + taskId: str user: str diff --git a/eve/api/handlers.py b/eve/api/handlers.py index b272646..eb15c95 100644 --- a/eve/api/handlers.py +++ b/eve/api/handlers.py @@ -52,7 +52,7 @@ async def handle_create(request: TaskRequest): @handle_errors async def handle_cancel(request: CancelRequest): - task = Task.from_mongo(request.task_id) + task = Task.from_mongo(request.taskId) if str(task.user) != request.user: raise APIError( "Unauthorized: Task user does not match user_id", status_code=403