fix: uapi cache key mismatch and write without cache gate
This commit is contained in:
parent
77b4b14525
commit
d67cc0b0da
@ -118,7 +118,8 @@ where b.orgid = c.ownerid
|
||||
e = Exception(f'{appid=} {orgid=} get none user')
|
||||
exception(f'{e}')
|
||||
raise e
|
||||
self.apidata[key] = d
|
||||
if _cache_enabled():
|
||||
self.org_users[key] = d
|
||||
return d
|
||||
e = Exception(f'{appid=} {orgid=} get none user')
|
||||
exception(f'{e}')
|
||||
@ -147,7 +148,8 @@ where b.orgid = c.ownerid
|
||||
e = Exception(f'{appid=}, {apiname=} get none api')
|
||||
exception(f'{e}')
|
||||
raise e
|
||||
self.apidata[key] = d
|
||||
if _cache_enabled():
|
||||
self.apidata[key] = d
|
||||
return d
|
||||
e = Exception(f'{appid=}, {apiname=} get none api')
|
||||
exception(f'{e}')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user