Skip to content

Commit

Permalink
revert(@nestjs/event-emitter): revert commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Maligosus committed Mar 6, 2023
1 parent 04cbdc7 commit d4dbceb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/event-subscribers.loader.ts
Expand Up @@ -50,16 +50,17 @@ export class EventSubscribersLoader
const { instance } = wrapper;
const prototype = Object.getPrototypeOf(instance) || {};
const isRequestScoped = !wrapper.isDependencyTreeStatic();
this.metadataScanner
.getAllMethodNames(prototype)
.forEach(methodKey =>
this.metadataScanner.scanFromPrototype(
instance,
prototype,
(methodKey: string) =>
this.subscribeToEventIfListener(
instance,
methodKey,
isRequestScoped,
wrapper.host as Module,
),
);
);
});
}

Expand Down

0 comments on commit d4dbceb

Please sign in to comment.