fix: reset state of repository instead of removing it

This commit is contained in:
tdurieux
2021-09-08 15:44:19 +02:00
parent 1ae94081d6
commit c79362a4ff

View File

@@ -39,8 +39,8 @@ downloadQueue.process(2, async (job) => {
try {
const repo = await getRepository(job.data.repoId);
job.progress("get_repo");
await repo.remove();
job.progress("get_remove");
await repo.resetSate();
job.progress("resetSate");
await repo.anonymize();
} catch (error) {
console.log("error", error);