Skip to content

Commit

Permalink
Merge pull request #98 from hackolade/HCK-3548--hackolade-re-re-steps…
Browse files Browse the repository at this point in the history
…-to-register-union-with-s

FE: fixed issue when files saved after FE had POST statements in them
  • Loading branch information
Vitalii4as authored May 25, 2023
2 parents bba1bab + 23c1be5 commit f423dba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion forward_engineering/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const generateScript = (data, logger, cb, app) => {

const settings = getSettings({ containerData, entityData, modelData });
const script = getScript({
scriptType: getScriptType(options, modelData),
scriptType: options.origin === 'ui' ? getScriptType(options, modelData) : SCRIPT_TYPES.COMMON,
needMinify: isMinifyNeeded(options),
settings,
avroSchema: convertJsonToAvro(parseJson(jsonSchema), settings.name),
Expand Down
1 change: 1 addition & 0 deletions shared/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const SCRIPT_TYPES = {
AZURE_SCHEMA_REGISTRY: 'azureSchemaRegistry',
PULSAR_SCHEMA_REGISTRY: 'pulsarSchemaRegistry',
SCHEMA_REGISTRY: 'schemaRegistry',
COMMON: 'common',
};

const GENERAL_ATTRIBUTES = ['type', 'doc', 'order', 'default'];
Expand Down

0 comments on commit f423dba

Please sign in to comment.