diff --git a/app/api/routes/auth.py b/app/api/routes/auth.py index 948e3be..6e4d7ce 100644 --- a/app/api/routes/auth.py +++ b/app/api/routes/auth.py @@ -1,4 +1,5 @@ from datetime import datetime +from uuid import uuid4 from aiogram.utils.web_app import safe_parse_webapp_init_data from sanic import response @@ -170,12 +171,9 @@ async def s_api_v1_auth_select_wallet(request): 'keys': existing_connection.keys, 'meta': existing_connection.meta, 'wallet_key': existing_connection.wallet_key, - 'connection_id': existing_connection.connection_id, + 'connection_id': existing_connection.connection_id + uuid4().hex, 'network': existing_connection.network, } - - db_session.delete(existing_connection) - db_session.commit() new_connection = WalletConnection( **saved_values,