From 3ab014d3582cd14a71bbf1418836854eaeda8cac Mon Sep 17 00:00:00 2001 From: user Date: Mon, 17 Mar 2025 13:54:36 +0300 Subject: [PATCH] fix selectWallet --- app/api/routes/auth.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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,