Skip to content

Commit 3dc49c6

Browse files
committed
fix: registrations from single election needed a user
1 parent c4f35d4 commit 3dc49c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/registrations/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def get_election_registrations(
4040
db_session: database.DBSession,
4141
election_name: str
4242
):
43-
_, computing_id = await logged_in_or_raise(request, db_session)
43+
await logged_in_or_raise(request, db_session)
4444

4545
slugified_name = slugify(election_name)
4646
if await elections.crud.get_election(db_session, slugified_name) is None:
@@ -49,7 +49,7 @@ async def get_election_registrations(
4949
detail=f"election with slug {slugified_name} does not exist"
5050
)
5151

52-
registration_list = await registrations.crud.get_all_registrations_of_user(db_session, computing_id, slugified_name)
52+
registration_list = await registrations.crud.get_all_registrations_in_election(db_session, slugified_name)
5353
if registration_list is None:
5454
return JSONResponse([])
5555
return JSONResponse([

0 commit comments

Comments
 (0)