Тест кода
This commit is contained in:
parent
e807b68c7c
commit
cc37969360
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ class UserService:
|
|||
async def find_user(uow: UnitOfWork, **find_by) -> SUser:
|
||||
try:
|
||||
async with RedisService() as redis:
|
||||
logging.warning("find_by", f"user: {find_by}")
|
||||
logging.warning(f"find_by user: {find_by}")
|
||||
user = await redis.get_value(key=f"user: {find_by}", model=SUser)
|
||||
return user
|
||||
except ValidationError:
|
||||
|
@ -84,7 +84,7 @@ class UserService:
|
|||
logging.warning(f"{verification_code == confirmation_code=}")
|
||||
async with uow:
|
||||
await uow.user.change_data(user_id=user.id, role=settings.VERIFICATED_USER)
|
||||
logging.warning("dict", f"user: {dict(id=user.id)}")
|
||||
logging.warning(f"dict user: {dict(id=user.id)}")
|
||||
async with RedisService() as redis:
|
||||
await redis.delete_key(key=f"user: {dict(id=user.id)}")
|
||||
await redis.set_key(
|
||||
|
|
Loading…
Add table
Reference in a new issue