This commit is contained in:
yumoqing 2025-08-13 11:22:45 +08:00
parent 0bb8a2891e
commit 787bf26c19

View File

@ -109,8 +109,8 @@ class UAPI:
else:
dbname = get_dbname()
db = DBPools()
self.sor = db.sqlorContext(dbname)
async with self.sor as sor:
async with db.sqlorContext(dbname) as sor:
self.sor = sor
auth_uapi, uapi = await self.get_uapis(self.sor,
upapiid, apiname,
callerid, params=params)