From e0736b619915802aa2463121b67ae7b96b9e42ef Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 23 Jan 2023 07:19:18 +0100 Subject: [PATCH] fixed Origin.delete() --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 9218695..5a31820 100644 --- a/app/main.py +++ b/app/main.py @@ -161,7 +161,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) return JSONr(status_code=404, content={'status': 404, 'detail': 'lease not found'})