mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:26:21 +00:00
fix: update field error (#1645)
This commit is contained in:
parent
caee2bf213
commit
914260ed7e
@ -43,12 +43,14 @@ export class HasManyRepository extends MultipleRelationRepository implements IHa
|
||||
addFilter[this.associationField.targetKey] = options.filterByTk;
|
||||
}
|
||||
|
||||
return await targetRepository.find({
|
||||
...omit(options, ['filterByTk']),
|
||||
const findOptions = {
|
||||
...omit(options, ['filterByTk', 'where', 'values', 'attributes']),
|
||||
filter: {
|
||||
$and: [options.filter || {}, addFilter],
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
return await targetRepository.find(findOptions);
|
||||
}
|
||||
|
||||
@transaction((args, transaction) => {
|
||||
|
@ -673,6 +673,7 @@ describe('collections repository', () => {
|
||||
filterByTk: 'a',
|
||||
values: {
|
||||
key: C.key,
|
||||
collectionName: 'c',
|
||||
uiSchema: {
|
||||
title: 'c-hello-world',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user