Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Oct 28, 2024
1 parent 91161ee commit 524fd27
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion breathecode/services/google/actions/participant_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ async def participant_session(name: str, credentials: QuerySet[CredentialsGoogle
conference_record = await client.aget_conference_record(name=conference_record_name)
space = await client.aget_space(name=conference_record.space)

session = await MentorshipSession.objects.filter(online_meeting_url=space.meeting_uri).afirst()
session = (
await MentorshipSession.objects.filter(online_meeting_url=space.meeting_uri)
.prefetch_related(
"mentor",
"mentor__user",
)
.afirst()
)
if session is None:
raise AbortTask(f"MentorshipSession with meeting url {space.meeting_uri} not found")

Expand Down

0 comments on commit 524fd27

Please sign in to comment.