Skip to content

Commit 90c91d4

Browse files
get_unreviewed_comments endpoint fix (#73)
1 parent c7401eb commit 90c91d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

calendar_backend/routes/event/comment_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def get_unreviewed_comments(
2323
) -> list[CommentEventGet]:
2424
comments = (
2525
DbCommentEvent.get_all(session=db.session, only_approved=False)
26-
.filter(DbCommentEvent.lecturer_id == event_id, DbCommentEvent.approve_status == ApproveStatuses.PENDING)
26+
.filter(DbCommentEvent.event_id == event_id, DbCommentEvent.approve_status == ApproveStatuses.PENDING)
2727
.all()
2828
)
2929
return parse_obj_as(list[CommentEventGet], comments)

0 commit comments

Comments
 (0)