feat: common style for getters
This commit is contained in:
@ -13,7 +13,7 @@ class StatusService:
|
||||
async def get_statuses(self, board_id: int) -> GetStatusesResponse:
|
||||
statuses = await self.repository.get_all(board_id)
|
||||
return GetStatusesResponse(
|
||||
statuses=[StatusSchema.model_validate(status) for status in statuses]
|
||||
items=[StatusSchema.model_validate(status) for status in statuses]
|
||||
)
|
||||
|
||||
async def create_status(self, request: CreateStatusRequest) -> CreateStatusResponse:
|
||||
|
||||
Reference in New Issue
Block a user