mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-12 18:32:44 +00:00
fix repo expiration
This commit is contained in:
@@ -17,6 +17,9 @@ async function anonymizeRepository(options) {
|
||||
if (repoConfig == null) {
|
||||
throw "repo_not_found";
|
||||
}
|
||||
if (repoConfig.status == "removed" || repoConfig.status == "expired") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (repoConfig.options.expirationMode != "never") {
|
||||
if (repoConfig.options.expirationDate <= new Date()) {
|
||||
@@ -24,7 +27,6 @@ async function anonymizeRepository(options) {
|
||||
await repoUtils.updateStatus(repoConfig, "expired");
|
||||
await repoUtils.removeRepository(repoConfig);
|
||||
throw "repository_expired";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user