Skip to content

Commit

Permalink
#1406: review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jul 8, 2024
1 parent 24a06c9 commit d1a776f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion @types/lib/metadataTypes/Event.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions lib/metadataTypes/Event.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,7 @@ class Event extends MetadataType {
await File.writeJSONToFile(
[templateDir, this.definition.type].join('/'),
originalKey + '.' + this.definition.type + '-meta',
JSON.parse(
Util.replaceByObject(
JSON.stringify(metadataItemTemplated),
templateVariables
)
)
metadataItemTemplated
);
Util.logger.info(` - templated ${this.definition.type}: ${name}`);
return { metadata: metadataItemTemplated, type: this.definition.type };
Expand Down

0 comments on commit d1a776f

Please sign in to comment.