fix: fix GitHubDownload

This commit is contained in:
tdurieux committed 2024-04-03 13:24:34 +01:00
1 parent fc469be61b
commit db67f53b2c
7 files changed
+112 -57

No files matched your search

+6
View File
@@ -31,6 +31,12 @@ router.get(
if (!repo) return;
try {
if (!(await repo.isReady())) {
throw new AnonymousError("repository_not_ready", {
object: this,
httpStatus: 503,
});
}
const f = new AnonymizedFile({
repository: repo,
anonymizedPath,