fix: Root 组织查不到命令记录

pull/5780/head
xinwen 2021-03-17 16:51:40 +08:00 committed by Jiangjie.Bai
parent 42afc1e0bf
commit fd3a4d887e
1 changed files with 5 additions and 1 deletions

View File

@ -121,7 +121,11 @@ class CommandStore():
org_id = match.get('org_id') org_id = match.get('org_id')
real_default_org_id = '00000000-0000-0000-0000-000000000002' real_default_org_id = '00000000-0000-0000-0000-000000000002'
if org_id in (real_default_org_id, ''): root_org_id = '00000000-0000-0000-0000-000000000000'
if org_id == root_org_id:
match.pop('org_id')
elif org_id in (real_default_org_id, ''):
match.pop('org_id') match.pop('org_id')
should.append({ should.append({
'bool':{ 'bool':{