mirror of
https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
synced 2024-11-13 01:48:49 +00:00
fixed Origin.delete()
This commit is contained in:
parent
5a59864383
commit
e0736b6199
@ -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'})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user