File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
generators/spring-boot-javers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export default class extends BaseApplicationGenerator {
22
22
} ,
23
23
async addNeedle ( { application, source } ) {
24
24
source . addEntityToAuditedEntityEnum = ( { entityAuditEnumValue, entityAbsoluteClass, entityAuditEventType } ) => {
25
- const enumValueDeclaration = `${ entityAuditEnumValue } (${ entityAbsoluteClass } .class, "${ entityAuditEventType } ")` ;
25
+ const enumValueDeclaration = `${ entityAuditEnumValue } ( ${ entityAbsoluteClass } .class, "${ entityAuditEventType } " )` ;
26
26
this . editFile (
27
27
`${ application . javaPackageSrcDir } config/audit/AuditedEntity.java` ,
28
28
createNeedleCallback ( {
@@ -39,7 +39,7 @@ export default class extends BaseApplicationGenerator {
39
39
const needleIndex = content . indexOf ( ' // jhipster-needle-add-audited-entities' ) ;
40
40
let beforeContent = content . substring ( 0 , needleIndex ) ;
41
41
// Drop extra line ending if it exists, can be caused by prettier formatting
42
- beforeContent = beforeContent . endsWith ( '/n/ n' ) ? beforeContent . slice ( 0 , - 1 ) : beforeContent ;
42
+ beforeContent = beforeContent . endsWith ( '\n\ n' ) ? beforeContent . slice ( 0 , - 1 ) : beforeContent ;
43
43
const afterContent = content . substring ( needleIndex ) ;
44
44
45
45
if ( ! beforeContent . includes ( needleValuePrefix ) || ! beforeContent . endsWith ( needleValueSuffix ) ) {
You can’t perform that action at this time.
0 commit comments