Closed sanwei111 closed 3 months ago
@router.delete("/") async def delete_nonsense(name: str, db_session: AsyncSession = Depends(get_db)): nonsense = await Nonsense.find(db_session, name) return await nonsense.delete(nonsense, db_session)
can not work
hmmm can you place err trace ?
@router.delete("/") async def delete_nonsense(name: str, db_session: AsyncSession = Depends(get_db)): nonsense = await Nonsense.find(db_session, name) return await nonsense.delete(nonsense, db_session)
can not work