feat: add created_ad to placementOutput
This commit is contained in:
@@ -40,6 +40,7 @@ class PlacementOutput(pydantic.BaseModel):
|
|||||||
project: ProjectOutput | None = None
|
project: ProjectOutput | None = None
|
||||||
short_id: str
|
short_id: str
|
||||||
details: PlacementDetails | None = None
|
details: PlacementDetails | None = None
|
||||||
|
created_at: datetime.datetime
|
||||||
|
|
||||||
|
|
||||||
class PostOutput(pydantic.BaseModel):
|
class PostOutput(pydantic.BaseModel):
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ def _build_placement_output(
|
|||||||
creative_name=creative_name,
|
creative_name=creative_name,
|
||||||
comment=placement.comment,
|
comment=placement.comment,
|
||||||
invite_link=placement.invite_link,
|
invite_link=placement.invite_link,
|
||||||
|
invite_link_created_at=placement.invite_link_created_at,
|
||||||
invite_link_type=placement.invite_link_type,
|
invite_link_type=placement.invite_link_type,
|
||||||
channel=dto.ChannelOutput(
|
channel=dto.ChannelOutput(
|
||||||
id=channel.id,
|
id=channel.id,
|
||||||
@@ -154,6 +155,7 @@ def _build_placement_output(
|
|||||||
project=project_output,
|
project=project_output,
|
||||||
short_id=short_id,
|
short_id=short_id,
|
||||||
details=_build_placement_details(placement),
|
details=_build_placement_details(placement),
|
||||||
|
created_at=placement.created_at,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user