feat: add workspace
This commit is contained in:
@@ -7,7 +7,11 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
async def get_creatives(self: 'Usecase', input: dto.GetCreativesInput) -> dto.GetCreativesOutput:
|
||||
creatives = await self.database.get_user_creatives(input.user_id, input.target_channel_id, input.include_archived)
|
||||
await self.ensure_workspace_access(input.workspace_id, input.user_id)
|
||||
|
||||
creatives = await self.database.get_workspace_creatives(
|
||||
input.workspace_id, input.target_channel_id, input.include_archived
|
||||
)
|
||||
|
||||
return dto.GetCreativesOutput(
|
||||
creatives=[
|
||||
|
||||
Reference in New Issue
Block a user