File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class JmyRepository(BaseRepository[JmyCompany]):
99 def __init__ (self ):
1010 super ().__init__ (model = JmyCompany )
1111
12- async def read_by_name (self , name : str , eager : bool = False ) -> JmyCompany :
12+ async def read_by_name (self , name : str , eager : bool = False ) -> JmyCompany | None :
1313 stmt = select (self .model )
1414 if eager :
1515 stmt = self ._eager (stmt = stmt )
Original file line number Diff line number Diff line change 88class JmyService (BaseService [JmyCompany , JmyCompanyRequest , JmyCompanyOut ]):
99 def __init__ (self , jmy_repository : JmyRepository ):
1010 super ().__init__ (repository = jmy_repository , schema = JmyCompanyOut )
11- self .repository : jmy_repository
11+ self .repository : JmyRepository
1212
1313 @database .transactional
1414 async def create (self , schema : JmyCompanyRequest ) -> JmyCompanyOut :
You can’t perform that action at this time.
0 commit comments