fix: return participant emails from transcript endpoint (#769)

* Return participant emails from transcript endpoint

* Fix broken test
This commit is contained in:
2025-12-03 16:47:56 +01:00
committed by GitHub
parent af921ce927
commit d3a5cd12d2
2 changed files with 25 additions and 2 deletions

View File

@@ -88,5 +88,11 @@ class UserController:
results = await get_database().fetch_all(query)
return [User(**r) for r in results]
@staticmethod
async def get_by_ids(user_ids: list[NonEmptyString]) -> dict[str, User]:
query = users.select().where(users.c.id.in_(user_ids))
results = await get_database().fetch_all(query)
return {user.id: User(**user) for user in results}
user_controller = UserController()