Skip to content

Commit c2d34fd

Browse files
author
vladyslav.kulakov
committed
refactor(app.module): changed module parameters for the 9th version of nestjs
1 parent 593b011 commit c2d34fd

File tree

7 files changed

+7
-14
lines changed

7 files changed

+7
-14
lines changed

generators/auth/templates/mysql/jwt/src/modules/app/app.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ import AppController from './app.controller';
2626
cli: {
2727
migrationsDir: 'src/migrations',
2828
},
29-
migrationsRun: true,
30-
synchronize: true,
29+
autoLoadEntities: true,
3130
}),
3231
inject: [ConfigService],
3332
}),

generators/auth/templates/mysql/oauth2/src/modules/app/app.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ import V1Module from '../v1/v1.module';
2424
cli: {
2525
migrationsDir: 'src/migrations',
2626
},
27-
migrationsRun: true,
28-
synchronize: true,
27+
autoLoadEntities: true,
2928
}),
3029
inject: [ConfigService],
3130
}),

generators/auth/templates/mysql/passportLocal/src/modules/app/app.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ import AppService from './app.service';
2525
cli: {
2626
migrationsDir: 'src/migrations',
2727
},
28-
migrationsRun: true,
29-
synchronize: true,
28+
autoLoadEntities: true,
3029
}),
3130
inject: [ConfigService],
3231
}),

generators/casl/templates/mysql/jwt/src/modules/app/app.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ import AppController from './app.controller';
2626
cli: {
2727
migrationsDir: 'src/migrations',
2828
},
29-
migrationsRun: true,
30-
synchronize: true,
29+
autoLoadEntities: true,
3130
}),
3231
inject: [ConfigService],
3332
}),

generators/casl/templates/mysql/oauth2/src/modules/app/app.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ import V1Module from '../v1/v1.module';
2424
cli: {
2525
migrationsDir: 'src/migrations',
2626
},
27-
migrationsRun: true,
28-
synchronize: true,
27+
autoLoadEntities: true,
2928
}),
3029
inject: [ConfigService],
3130
}),

generators/casl/templates/mysql/passportLocal/src/modules/app/app.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ import AppService from './app.service';
2525
cli: {
2626
migrationsDir: 'src/migrations',
2727
},
28-
migrationsRun: true,
29-
synchronize: true,
28+
autoLoadEntities: true,
3029
}),
3130
inject: [ConfigService],
3231
}),

generators/casl/templates/postgresql/jwt/src/modules/app/app.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ import AppController from './app.controller';
2525
cli: {
2626
migrationsDir: 'src/migrations',
2727
},
28-
migrationsRun: true,
29-
synchronize: true,
28+
autoLoadEntities: true,
3029
}),
3130
inject: [ConfigService],
3231
}),

0 commit comments

Comments
 (0)