Skip to content

Commit

Permalink
fix: Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Sep 13, 2024
1 parent 14a1a01 commit f8ce313
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from ...autogen.openapi_model import (
CreateOrUpdateSessionRequest,
ResourceCreatedResponse,
ResourceUpdatedResponse,
)
from ...dependencies.developer_id import get_developer_id
from ...models.session.create_or_update_session import (
Expand All @@ -21,14 +21,9 @@ async def create_or_update_session(
x_developer_id: Annotated[UUID4, Depends(get_developer_id)],
session_id: UUID,
data: CreateOrUpdateSessionRequest,
) -> ResourceCreatedResponse:
session = create_session_query(
) -> ResourceUpdatedResponse:
return create_session_query(
developer_id=x_developer_id,
session_id=session_id,
data=data,
)

return ResourceCreatedResponse(
id=session.id,
created_at=session.created_at,
)

0 comments on commit f8ce313

Please sign in to comment.