Skip to content

Commit

Permalink
#1859: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jan 7, 2025
1 parent 397fc87 commit aa9384e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion @types/lib/metadataTypes/DataExtract.d.ts.map

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

7 changes: 7 additions & 0 deletions @types/lib/metadataTypes/SendClassification.d.ts

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

2 changes: 1 addition & 1 deletion @types/lib/metadataTypes/SendClassification.d.ts.map

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

5 changes: 4 additions & 1 deletion lib/metadataTypes/DataExtract.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class DataExtract extends MetadataType {
delete metadata.r__dataExtractType_name;
return metadata;
}

/**
* Gets executed after deployment of metadata type
*
Expand All @@ -146,7 +147,9 @@ class DataExtract extends MetadataType {
*/
static async postDeployTasks(upsertResults) {
// re-retrieve all upserted items to ensure we have all fields (createdDate and modifiedDate are otherwise not present)
Util.logger.debug('Retrieving all dataExtracts post-deploy to ensure we have all fields');
Util.logger.debug(
`Caching all ${this.definition.type} post-deploy to ensure we have all fields`
);
const typeCache = await this.retrieveForCache();
// update values in upsertResults with retrieved values before saving to disk
for (const key of Object.keys(upsertResults)) {
Expand Down

0 comments on commit aa9384e

Please sign in to comment.