We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a833b commit 121818cCopy full SHA for 121818c
webapi/db/dals/comment_dal.py
@@ -22,6 +22,7 @@ async def create(self, obj_in: CommentCreate):
22
return db_obj
23
24
async def delete(self, *, db_obj: Comment):
25
+ # TODO: 无法删除父评论
26
await self.db_session.execute(delete(Comment).where(Comment.id == db_obj.id))
27
28
async def update(self, db_obj: Comment, obj_in: CommentInUpdate):
0 commit comments