Skip to content

Commit

Permalink
fix: 订正方法名称
Browse files Browse the repository at this point in the history
forRoot -> forRootAsync
  • Loading branch information
jay committed Apr 2, 2022
1 parent 6a41273 commit a93037c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/wechat.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion tests/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class AppModule {
return {
module: AppModule,
imports: [
WeChatModule.forRoot({
WeChatModule.forRootAsync({
imports: [
ConfigModule.forRoot({
envFilePath: '.env.test.local',
Expand Down

0 comments on commit a93037c

Please sign in to comment.