Skip to content

Commit

Permalink
chore(deps): Fixed TS transpilation with new class-validator v0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BorntraegerMarc committed Jan 20, 2021
1 parent c421e19 commit 52d3ec7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/type-helpers.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export function inheritValidationMetadata(
const targetMetadata = metadataStorage.getTargetValidationMetadatas(
parentClass,
null!,
false,
false,
);
return targetMetadata
.filter(
Expand Down
2 changes: 2 additions & 0 deletions tests/type-helpers.test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export function getValidationMetadataByTarget(target: Function) {
const targetMetadata = metadataStorage.getTargetValidationMetadatas(
target,
null!,
false,
false,
);
return targetMetadata;
}

0 comments on commit 52d3ec7

Please sign in to comment.