feat(#97): display when the repo has been anonymized

This commit is contained in:
tdurieux
2022-10-04 14:22:25 +02:00
parent c90710fb6f
commit 3e2644438e
3 changed files with 11 additions and 3 deletions

View File

@@ -139,7 +139,6 @@ router.get(
!!config.ENABLE_DOWNLOAD &&
repo.source.type == "GitHubDownload";
}
console.log(repo.size.storage, repo.source.type)
if (
repo.size.storage < config.FREE_DOWNLOAD_REPO_SIZE * 1024 &&
repo.source.type == "GitHubDownload"
@@ -151,6 +150,7 @@ router.get(
res.json({
url: redirectURL,
download,
lastUpdateDate: repo.model.statusDate,
});
} catch (error) {
handleError(error, res, req);