fix: fix GitHubDownload

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

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,