Skip to content

Commit

Permalink
fix: removed deps from delele org api (#1233)
Browse files Browse the repository at this point in the history
Co-authored-by: sujanadh <sujanadh07@gmail.com>
  • Loading branch information
Sujanadh and sujanadh authored Feb 20, 2024
1 parent 0c095d3 commit 189148d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/app/organisations/organisation_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,12 @@ async def update_organisation(

@router.delete("/{org_id}")
async def delete_organisations(
organisation: DbOrganisation = Depends(org_exists),
org_id: int,
db: Session = Depends(database.get_db),
org_user_dict: DbUser = Depends(org_admin),
):
"""Delete an organisation."""
organisation = db.query(DbOrganisation).filter(DbOrganisation.id == org_id).first()
return await organisation_crud.delete_organisation(db, organisation)


Expand Down

0 comments on commit 189148d

Please sign in to comment.