@app.patch('/todoer/api/v1/tasks/{task_key}', response_model=Task)
async def patch_task(task_key: str, task: TaskPartialUpdate, database=Depends(get_database)) -> Task:
    try:
        logger.info(f'request to patch task: {task_key}')
        return (await database.update(task_key, task))
    except DataLayerException:
        raise HTTPException(status_code=404, detail=f'Task {task_key} not found')
@app.patch('/todoer/api/v1/tasks/{task_key}', response_model=Task)
async def patch_task(task_key: str, task: TaskPartialUpdate, database=Depends(get_database)) -> Task:
    try:
        logger.info(f'request to patch task: {task_key}')
        return (await database.update(task_key, task))
    except DataLayerException:
        raise HTTPException(status_code=404, detail=f'Task {task_key} not found')