fix(plugin-collection-manager): filter out the fields

This commit is contained in:
chenos 2022-01-24 14:41:27 +08:00
parent 9c6ad9967f
commit 003745681b

View File

@ -24,9 +24,15 @@ export class CollectionModel extends MagicAttributeModel {
if (skipExist) {
return collection;
}
collection.updateOptions(this.get());
collection.updateOptions({
...this.get(),
fields: [],
});
} else {
collection = this.db.collection(this.get());
collection = this.db.collection({
...this.get(),
fields: [],
});
}
if (!skipField) {