diff --git a/backend/app/services/vote_service.py b/backend/app/services/vote_service.py index 8173ebe..5da2e27 100644 --- a/backend/app/services/vote_service.py +++ b/backend/app/services/vote_service.py @@ -76,7 +76,7 @@ async def list_votes( select(Vote) .options( selectinload(Vote.creator), - selectinload(Vote.options).selectinload(VoteOption.responses), + selectinload(Vote.options).selectinload(VoteOption.responses).selectinload(VoteResponse.voter), ) .where(Vote.class_id == class_id) .order_by(Vote.created_at.desc())