fix
This commit is contained in:
@@ -9,9 +9,9 @@ from src import domain
|
||||
class PlacementOutput(pydantic.BaseModel):
|
||||
id: uuid.UUID
|
||||
project_id: uuid.UUID
|
||||
project_channel_title: str
|
||||
project_channel_title: str | None
|
||||
placement_channel_id: uuid.UUID
|
||||
placement_channel_title: str
|
||||
placement_channel_title: str | None
|
||||
creative_id: uuid.UUID
|
||||
creative_name: str
|
||||
placement_date: datetime.datetime
|
||||
|
||||
@@ -40,7 +40,13 @@ 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(
|
||||
CORSMiddleware,
|
||||
|
||||
@@ -80,6 +80,7 @@ async def tg_add_project_1(self: 'Usecase', input: dto.ConnectProjectInput) -> d
|
||||
telegram_id=input.telegram_id,
|
||||
title=input.title,
|
||||
username=input.username,
|
||||
verification_status=domain.ChannelVerificationStatus.VERIFIED,
|
||||
workspace_id=workspace.id,
|
||||
)
|
||||
await self.database.create_channel(channel)
|
||||
|
||||
Reference in New Issue
Block a user