Skip to content

Commit

Permalink
fix(adapters.nestjs): fix broken reflection when initiate class (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
omermorad authored Jul 30, 2023
1 parent 53dc0de commit 5bb215a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapters/nestjs/src/class-props-reflector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ClassPropsReflector = ReturnType<typeof ClassPropsReflector>;
export function ClassPropsReflector(reflector: MetadataReflector) {
function reflectInjectables(targetClass: Type): ClassPropsInjectables {
const classProperties = reflectProperties(targetClass)(reflector);
const classInstance = new targetClass();
const classInstance = Object.create(targetClass.prototype);

return classProperties.map(({ key, type }) => {
const reflectedType = reflector.getMetadata(
Expand Down

0 comments on commit 5bb215a

Please sign in to comment.