diff --git a/app/main.py b/app/main.py index 5946cbe..cee4638 100644 --- a/app/main.py +++ b/app/main.py @@ -198,7 +198,7 @@ async def _origins_delete(request: Request): @app.delete('/-/origins/{origin_ref}', summary='* Origins') async def _origins_delete_origin_ref(request: Request, origin_ref: str): - if Origin.delete(db, origin_ref) == 1: + if Origin.delete(db, [origin_ref]) == 1: return Response(status_code=201) raise JSONResponse(status_code=404, content={'status': 404, 'detail': 'lease not found'})