fixed errant method name refactor, added docstrings

This commit is contained in:
Lucas Jensen
2024-05-02 18:57:17 -07:00
parent f953ae3dfe
commit bd95dc2c22
7 changed files with 25 additions and 8 deletions

View File

@@ -63,7 +63,7 @@ class EventController(BaseController):
"""
Builds and returns a single EventSeries object by its numeric ID.
"""
if not (data := await self.db.select_one_series_by_id(series_id)):
if not (data := await self.db.select_one_by_id(series_id)):
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND, detail="Event not found"
)