Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 2, 2024
1 parent 7dd3a48 commit 00bd8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/bootstrap-application-base/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export function createUserEntity(customUserData = {}, application) {
fieldValidateRulesMaxlength,
fieldTranslationKey: 'global.field.id',
fieldNameHumanized: 'ID',
fieldValidateRules: [Validations.REQUIRED],
readonly: true,
id: true,
builtIn: true,
Expand Down Expand Up @@ -200,6 +199,7 @@ export function createUserManagementEntity(customUserManagementData = {}, applic
field.id = true;
} else if (field.fieldName === 'id') {
field.id = false;
field.fieldValidateRules = [Validations.REQUIRED];
// Set id type fallback since it's not id anymore and will not be calculated.
field.fieldType = field.fieldType ?? getDatabaseTypeData(application.databaseType).defaultPrimaryKeyType;
}
Expand Down

0 comments on commit 00bd8ec

Please sign in to comment.