Commit ed4f2495 authored by nanahira's avatar nanahira

fix

parent acafca50
...@@ -276,8 +276,12 @@ export class KoishiMetascanService { ...@@ -276,8 +276,12 @@ export class KoishiMetascanService {
const allProviders = this.getAllActiveProvidersFromModule(module); const allProviders = this.getAllActiveProvidersFromModule(module);
for (const provider of allProviders) { for (const provider of allProviders) {
const instance = provider.instance; const instance = provider.instance;
this.scanInstanceForWireContextService(moduleCtx, instance); const providerCtx = this.ctxService.getProviderCtx(
this.scanInstanceForProvidingContextService(moduleCtx, instance); moduleCtx,
instance.constructor,
);
this.scanInstanceForWireContextService(providerCtx, instance);
this.scanInstanceForProvidingContextService(providerCtx, instance);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment