refactor: entity not found exceptions handler

This commit is contained in:
2025-09-16 16:56:10 +04:00
parent 276626d6f7
commit 98d3026e0d
24 changed files with 56 additions and 49 deletions

View File

@ -7,6 +7,7 @@ from schemas.board import UpdateBoardSchema, CreateBoardSchema
class BoardRepository(RepCrudMixin[Board, CreateBoardSchema, UpdateBoardSchema]):
entity_class = Board
entity_not_found_msg = "Доска не найдена"
def _process_get_all_stmt_with_args(self, stmt: Select, *args) -> Select:
project_id = args[0]