We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7401eb commit 90c91d4Copy full SHA for 90c91d4
1 file changed
calendar_backend/routes/event/comment_review.py
@@ -23,7 +23,7 @@ async def get_unreviewed_comments(
23
) -> list[CommentEventGet]:
24
comments = (
25
DbCommentEvent.get_all(session=db.session, only_approved=False)
26
- .filter(DbCommentEvent.lecturer_id == event_id, DbCommentEvent.approve_status == ApproveStatuses.PENDING)
+ .filter(DbCommentEvent.event_id == event_id, DbCommentEvent.approve_status == ApproveStatuses.PENDING)
27
.all()
28
)
29
return parse_obj_as(list[CommentEventGet], comments)
0 commit comments