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

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

No files matched your search

+1 -1
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);