diff --git a/lib/wechat.module.ts b/lib/wechat.module.ts index 1a3928a..317ea05 100644 --- a/lib/wechat.module.ts +++ b/lib/wechat.module.ts @@ -18,7 +18,7 @@ export class WeChatModule { }; } - public static forRoot (options: WeChatModuleRootOptions): DynamicModule { + public static forRootAsync (options: WeChatModuleRootOptions): DynamicModule { const providers: Provider[] = []; if (options.useFactory) { providers.push({ diff --git a/tests/app.module.ts b/tests/app.module.ts index 03883f7..7970a90 100644 --- a/tests/app.module.ts +++ b/tests/app.module.ts @@ -19,7 +19,7 @@ export class AppModule { return { module: AppModule, imports: [ - WeChatModule.forRoot({ + WeChatModule.forRootAsync({ imports: [ ConfigModule.forRoot({ envFilePath: '.env.test.local',