Drying out

This commit is contained in:
2026-05-27 15:18:29 +02:00
parent 7cef6da5f2
commit 3e8a2092cd
8 changed files with 89 additions and 106 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ async def read_active_session(session: AsyncSession = Depends(get_session)):
from app.crud import get_active_session
active = await get_active_session(session)
return {"session": active}
return await get_active_session(session)
@router.get("", response_model=SessionListResponse)
@@ -87,7 +87,7 @@ async def delete_session_endpoint(
return None
@router.put("/{session_id}", response_model=None)
@router.patch("/{session_id}", response_model=SleepSessionRead)
async def update_session_endpoint(
session_id: int,
payload: SleepSessionUpdate,