do not download the repository after an update

This commit is contained in:
tdurieux
2021-04-27 09:22:21 +02:00
parent bed2671a73
commit 07b82b078b
+2 -1
View File
@@ -43,9 +43,10 @@ async function anonymizeRepository(options) {
console.error(repoConfig.repoId, req.path, error); console.error(repoConfig.repoId, req.path, error);
} }
await repoUtils.updateAnonymizedRepository(repoConfig); await repoUtils.updateAnonymizedRepository(repoConfig);
} } else {
await githubUtils.downloadRepoAndAnonymize(repoConfig); await githubUtils.downloadRepoAndAnonymize(repoConfig);
} }
}
router.get("/:repoId/files", async (req, res) => { router.get("/:repoId/files", async (req, res) => {
const repoConfig = await repoUtils.getConfig(req.params.repoId); const repoConfig = await repoUtils.getConfig(req.params.repoId);