Skip to content

Commit

Permalink
Update prepare-field.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Sep 18, 2024
1 parent 076a9f6 commit 1d43862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/base-application/support/prepare-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ function generateFakeDataForField(this: CoreGenerator, field, faker, changelogDa
data = data.substr(0, data.length - 3);
}
}
} else if (field.fieldType === BYTES && field.fieldTypeBlobContent !== TEXT) {
} else if (field.fieldTypeBinary && field.fieldTypeBlobContent !== TEXT) {
data = '../fake-data/blob/hipster.png';
} else if (field.fieldType === BYTES && field.fieldTypeBlobContent === TEXT) {
} else if (field.fieldTypeBinary && field.fieldTypeBlobContent === TEXT) {
data = '../fake-data/blob/hipster.txt';
} else if (field.fieldType === STRING) {
data = field.id ? faker.string.uuid() : faker.helpers.fake(fakeStringTemplateForFieldName(field.columnName));
Expand Down

0 comments on commit 1d43862

Please sign in to comment.