fix upload new message
This commit is contained in:
1 parent
5510abff1d
commit
ac6073a064
2 files changed
+5
-1
No files matched your search
@@ -202,7 +202,9 @@ async def convert_loop(memory):
|
||||
|
||||
session.commit()
|
||||
if not unprocessed_encrypted_content.meta.get('upload_notify_msg_id'):
|
||||
wallet_owner_connection = session.query(WalletConnection).order_by(WalletConnection.id.desc()).first()
|
||||
wallet_owner_connection = session.query(WalletConnection).filter(
|
||||
WalletConnection.wallet_address == unprocessed_encrypted_content.owner_address
|
||||
).order_by(WalletConnection.id.desc()).first()
|
||||
if wallet_owner_connection:
|
||||
wallet_owner_user = wallet_owner_connection.user
|
||||
wallet_owner_bot = Wrapped_CBotChat(memory._client_telegram_bot, chat_id=wallet_owner_user.telegram_id, user=wallet_owner_user, db_session=session)
|
||||
|
||||
Reference in new issue
Block a user