server: fixes tests

This commit is contained in:
2023-08-17 14:46:48 +02:00
parent e12f9afe7b
commit 4e9940fe29
2 changed files with 7 additions and 13 deletions

View File

@@ -217,6 +217,9 @@ class DeletionStatus(BaseModel):
async def transcripts_list(
user: auth.UserInfo = Depends(auth.current_user),
):
if not user:
raise HTTPException(status_code=401, detail="Not authenticated")
return paginate(await transcripts_controller.get_all(user_id=user["sub"]))