getUserIdsByActions中的查询条件修正

This commit is contained in:
Xu Chang 2023-07-26 18:44:49 +08:00
parent 6f3e01bffa
commit aae5c94403
2 changed files with 20 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {