diff --git a/core/service.py b/core/service.py index 490bc8a..bb28ba7 100644 --- a/core/service.py +++ b/core/service.py @@ -123,7 +123,7 @@ def _get_obj_by_id(self, id: int, is_deleted=0) -> Union[Model, None]: return None return obj - def get_obj(self, id: int) -> StandResponse[Union[Model, None]]: + def get_obj(self, id: int) -> StandResponse: return StandResponse(data=self._get_obj_by_id(id=id)) def list_obj(self, page_filter: PageFilter, page_schema: PageSchema) -> PageSchema: