loadRelations filter修改
This commit is contained in:
parent
1f25d94d25
commit
edaee49292
|
|
@ -61,9 +61,9 @@ export async function loadRelations(params, context) {
|
|||
},
|
||||
filter: {
|
||||
userId,
|
||||
/* entity: {
|
||||
$in: entities as string[],
|
||||
}, */
|
||||
entity: {
|
||||
$in: entities,
|
||||
},
|
||||
},
|
||||
}, {});
|
||||
const result = userRelations.map((userRelation) => omit(userRelation, 'relation'));
|
||||
|
|
|
|||
|
|
@ -64,9 +64,9 @@ async function loadRelations(params, context) {
|
|||
},
|
||||
filter: {
|
||||
userId,
|
||||
/* entity: {
|
||||
$in: entities as string[],
|
||||
}, */
|
||||
entity: {
|
||||
$in: entities,
|
||||
},
|
||||
},
|
||||
}, {});
|
||||
const result = userRelations.map((userRelation) => (0, lodash_1.omit)(userRelation, 'relation'));
|
||||
|
|
|
|||
|
|
@ -76,9 +76,9 @@ export async function loadRelations<
|
|||
},
|
||||
filter: {
|
||||
userId,
|
||||
/* entity: {
|
||||
entity: {
|
||||
$in: entities as string[],
|
||||
}, */
|
||||
},
|
||||
},
|
||||
}, {});
|
||||
const result = userRelations.map(
|
||||
|
|
|
|||
Loading…
Reference in New Issue