Skip to content

Commit 52cd394

Browse files
authored
Merge pull request #60 from Petr0vi4/feature/expose_not_working_with_inheritance
Expose should work with inheritance
2 parents 85b756a + 6c8d853 commit 52cd394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/metadata/MetadataStorage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export class MetadataStorage {
7070
}
7171

7272
findExposeMetadataByCustomName(target: Function, name: string): ExposeMetadata {
73-
return this._exposeMetadatas.find(metadata => {
74-
return metadata.target === target && metadata.options && metadata.options.name === name;
73+
return this.getExposedMetadatas(target).find(metadata => {
74+
return metadata.options && metadata.options.name === name;
7575
});
7676
}
7777

0 commit comments

Comments
 (0)