Skip to content

Commit

Permalink
#106: ensure _generated flag is saved for folders in deploy folder
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Nov 4, 2022
1 parent 248e48b commit 2e80af3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,10 @@ class Deployer {
}

if (i > 0) {
MetadataTypeInfo.folder.definition.fields._generated.retrieving = true; // ensure we keep that flag in deploy folder
// await results to allow us to re-read it right after
await MetadataTypeInfo.folder.saveResults(folderMetadata, deployDir, null);
MetadataTypeInfo.folder.definition.fields._generated.retrieving = false; // reset flag
Util.logger.info(`Created folders in deploy dir: ${i}`);

// reload from file system to ensure we use the same logic for building the temporary JSON
Expand Down

0 comments on commit 2e80af3

Please sign in to comment.