diff --git a/src/repositories/users/repository.py b/src/repositories/users/repository.py index b5ec11c..d58651e 100644 --- a/src/repositories/users/repository.py +++ b/src/repositories/users/repository.py @@ -25,13 +25,7 @@ def SELECT_USER_BY_ID(id_: int): - return ( - select(User) - .where(User.id == id_) - .options( - selectinload(**_get_options), - ) - ) + return select(User).where(User.id == id_).options(*_get_options) CRUD: AbstractCRUDRepository[