ref: рефакторинг usecases
This commit is contained in:
@@ -7,10 +7,7 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
async def get_creatives(self: 'Usecase', input: dto.GetCreativesInput) -> dto.GetCreativesOutput:
|
||||
async with self.database.transaction():
|
||||
creatives = await self.database.get_user_creatives(
|
||||
input.user_id, target_channel_id=input.target_channel_id, include_archived=input.include_archived
|
||||
)
|
||||
creatives = await self.database.get_user_creatives(input.user_id, input.target_channel_id, input.include_archived)
|
||||
|
||||
return dto.GetCreativesOutput(
|
||||
creatives=[
|
||||
|
||||
Reference in New Issue
Block a user