Skip to content

Commit

Permalink
Replace created_at attribute with updated_at in response
Browse files Browse the repository at this point in the history
  • Loading branch information
HamadaSalhab committed Sep 17, 2024
1 parent fc351e0 commit 67bfc1e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)
from ...dependencies.developer_id import get_developer_id
from ...models.session.create_or_update_session import (
create_or_update_session as create_session_query,
create_or_update_session as create_or_update_session_query,
)
from .router import router

Expand All @@ -22,13 +22,13 @@ async def create_or_update_session(
session_id: UUID,
data: CreateOrUpdateSessionRequest,
) -> ResourceCreatedResponse:
session = create_session_query(
session = create_or_update_session_query(
developer_id=x_developer_id,
session_id=session_id,
data=data,
)

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

0 comments on commit 67bfc1e

Please sign in to comment.