Skip to content

Commit

Permalink
create output directory in funding pot production directory to save r…
Browse files Browse the repository at this point in the history
…eport files
  • Loading branch information
ae2079 committed Oct 28, 2024
1 parent 9de38ce commit 93c9072
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/scripts/runFundingPotService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ async function generateBatchFile(batchNumber: number) {
await fs.writeJson(batchFilePath, batchConfig, { spaces: 2 });

console.info(`Batch config successfully written to ${batchFilePath}`);

const outputFilePath = path.join(
repoLocalDir,
'data',
'production',
'output',
'.keep',
);

// create output directory for reports
ensureDirectoryExists(path.dirname(outputFilePath));
}

async function fillProjectsData() {
Expand Down

0 comments on commit 93c9072

Please sign in to comment.