feat: added endpoints: auth, pofile, account, keyring #5
@ -67,7 +67,6 @@ async def create_account(
|
||||
|
||||
if user_validation is None:
|
||||
|
||||
|
||||
await create_user(connection,user,authorize_user.id)
|
||||
user_new = await get_user_login(connection, user.login)
|
||||
return user_new
|
||||
@ -104,7 +103,7 @@ async def update_account(
|
||||
if update_values is None:
|
||||
return user
|
||||
|
||||
user_update_data = User.model_validate(update_values)
|
||||
user_update_data = User.model_validate({**user.model_dump(), **update_values})
|
||||
ivan.dev marked this conversation as resolved
|
||||
|
||||
await update_user_id(connection, update_values, user)
|
||||
|
||||
|
@ -107,6 +107,8 @@ async def update_keyring(
|
||||
if update_values is None:
|
||||
return keyring
|
||||
|
||||
keyring_update_data = AccountKeyring.model_validate({**keyring.model_dump(), **update_values})
|
||||
|
||||
|
||||
await update_key_id(connection, update_values, keyring)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user
А вот где неиспользуемые переменные, можешь объяснить зачем они, я просто не особо понял?
Вот к примеру
user_update_data
иauthorize_user
, это какой-то задел на будущее?Да, если логика поменяется.