Skip to content

Commit

Permalink
fix(core): remove some computed properties from metadata cache
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed Oct 24, 2023
1 parent fbf3a4d commit eb138ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/src/metadata/MetadataDiscovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ export class MetadataDiscovery {
}

const copy = Utils.copy(meta, false);
delete copy.prototype;

copy.props
.filter(prop => Type.isMappedType(prop.type))
Expand All @@ -315,7 +314,10 @@ export class MetadataDiscovery {
.forEach(k => delete (prop as Dictionary)[k]);
});

delete (copy as Dictionary).checks;
[
'prototype', 'props', 'referencingProperties', 'propertyOrder', 'relations',
'concurrencyCheckKeys', 'checks',
].forEach(key => delete copy[key]);

// base entity without properties might not have path, but nothing to cache there
if (meta.path) {
Expand Down

0 comments on commit eb138ad

Please sign in to comment.