Explorar o código

no close db while finding the userid

CJYen %!s(int64=3) %!d(string=hai) anos
pai
achega
5a27357a7d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -237,7 +237,7 @@ async def receive(userModel : models.TransactionNft):
         return {'msg': 'user address not found'}
     else:
         userid = result['userid']
-        db.close()
+        
 
     # update nft owner
     if table3.find_one(nftid=nftid):