Skip to content

Commit

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

Expand Down

0 comments on commit fac9b8d

Please sign in to comment.