Closed Jieszs closed 3 months ago
@router.get("/metaEvents/{event_id}") async def get_one( event_id: int, db: Session = Depends(deps.get_db), ):
How to make sure the database session is always closed after the request. Even if there was an exception while processing the request.
Fixed in #49
@router.get("/metaEvents/{event_id}") async def get_one( event_id: int, db: Session = Depends(deps.get_db), ):