diff --git a/src/backend/app/tasks/task_routes.py b/src/backend/app/tasks/task_routes.py index b1410766..16e304ba 100644 --- a/src/backend/app/tasks/task_routes.py +++ b/src/backend/app/tasks/task_routes.py @@ -50,20 +50,19 @@ async def new_event( match detail.event: case EventType.REQUESTS: + # TODO: Combine the logic of `update_or_create_task_state` and `request_mapping` functions into a single function if possible. Will do later. project = await get_project_by_id(db, project_id) if project['auto_lock_tasks'] == 'true': - print("auto lock") data = await task_crud.update_or_create_task_state( db, project_id, task_id, user_id, - "Request accepted by auto", + "Request accepted automatically", State.REQUEST_FOR_MAPPING, State.LOCKED_FOR_MAPPING, ) else: - print("manul lock..") data = await task_crud.request_mapping( db, project_id,