Skip to content

Commit 69a0ad8

Browse files
committed
Handle no participant object
1 parent 33745d1 commit 69a0ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/api/participants/queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def ticket_id_to_hashid(ticket_id: strawberry.ID, conference_code: str) -> str |
4444
participant = ParticipantModel.objects.filter(
4545
conference=conference, user=attendee_user
4646
).first()
47-
return participant.hashid
47+
return participant.hashid if participant else None
4848

4949

5050
# TODO: move this to a badge app :)

0 commit comments

Comments
 (0)