fix selectWallet
This commit is contained in:
parent
4a739e4b1b
commit
3ab014d358
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue