getUserIdsByActions中的查询条件修正
This commit is contained in:
parent
6f3e01bffa
commit
aae5c94403
|
|
@ -2076,7 +2076,16 @@ function getUserIdsByActions(params, context) {
|
||||||
destEntity: entity,
|
destEntity: entity,
|
||||||
relation: {
|
relation: {
|
||||||
entity: entity,
|
entity: entity,
|
||||||
entityId: entityId,
|
$or: [
|
||||||
|
{
|
||||||
|
entityId: entityId,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
entityId: {
|
||||||
|
$exists: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
if (overlap) {
|
if (overlap) {
|
||||||
|
|
|
||||||
|
|
@ -2511,7 +2511,16 @@ export class RelationAuth<ED extends EntityDict & BaseEntityDict>{
|
||||||
destEntity: entity as string,
|
destEntity: entity as string,
|
||||||
relation: {
|
relation: {
|
||||||
entity: entity as string,
|
entity: entity as string,
|
||||||
entityId,
|
$or: [
|
||||||
|
{
|
||||||
|
entityId,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
entityId: {
|
||||||
|
$exists: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
if (overlap) {
|
if (overlap) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue