Skip to content

Commit

Permalink
Update generator.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored May 26, 2024
1 parent e0081f6 commit 273a59d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion generators/spring-boot/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ export default class SpringBootGenerator extends BaseApplicationGenerator {
const { reactive } = application;
applicationDefaults({
__override__: false,
requiresDeleteAllUsers: data => data.authenticationTypeOauth2 || (reactive && data.databaseTypeSql),
requiresDeleteAllUsers: data =>
data.authenticationTypeOauth2 ||
(reactive && data.databaseTypeSql) ||
(!reactive && data.databaseTypeMongodb) ||
(!reactive && data.databaseTypeCassandra),
reactorBlock: reactive ? '.block()' : '',
reactorBlockOptional: reactive ? '.blockOptional()' : '',
});
Expand Down

0 comments on commit 273a59d

Please sign in to comment.