fix
This commit is contained in:
@@ -9,9 +9,9 @@ from src import domain
|
|||||||
class PlacementOutput(pydantic.BaseModel):
|
class PlacementOutput(pydantic.BaseModel):
|
||||||
id: uuid.UUID
|
id: uuid.UUID
|
||||||
project_id: uuid.UUID
|
project_id: uuid.UUID
|
||||||
project_channel_title: str
|
project_channel_title: str | None
|
||||||
placement_channel_id: uuid.UUID
|
placement_channel_id: uuid.UUID
|
||||||
placement_channel_title: str
|
placement_channel_title: str | None
|
||||||
creative_id: uuid.UUID
|
creative_id: uuid.UUID
|
||||||
creative_name: str
|
creative_name: str
|
||||||
placement_date: datetime.datetime
|
placement_date: datetime.datetime
|
||||||
|
|||||||
@@ -40,7 +40,13 @@ usecase = Usecase(
|
|||||||
)
|
)
|
||||||
deps.set_usecase(usecase)
|
deps.set_usecase(usecase)
|
||||||
|
|
||||||
app = FastAPI(lifespan=lifespan, version=settings.logger.APP_VERSION)
|
app = FastAPI(
|
||||||
|
lifespan=lifespan,
|
||||||
|
version=settings.logger.APP_VERSION,
|
||||||
|
swagger_ui_parameters={
|
||||||
|
'defaultModelsExpandDepth': 0, # Сворачиваем Schemas
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ async def tg_add_project_1(self: 'Usecase', input: dto.ConnectProjectInput) -> d
|
|||||||
telegram_id=input.telegram_id,
|
telegram_id=input.telegram_id,
|
||||||
title=input.title,
|
title=input.title,
|
||||||
username=input.username,
|
username=input.username,
|
||||||
|
verification_status=domain.ChannelVerificationStatus.VERIFIED,
|
||||||
workspace_id=workspace.id,
|
workspace_id=workspace.id,
|
||||||
)
|
)
|
||||||
await self.database.create_channel(channel)
|
await self.database.create_channel(channel)
|
||||||
|
|||||||
Reference in New Issue
Block a user