fix: fix execution order in removeCache

This commit is contained in:
tdurieux
2024-04-04 08:44:59 +01:00
parent ca3996775b
commit 3cbf78beb8

View File

@@ -456,7 +456,7 @@ export default class Repository {
.startSpan("Repository.removeCache");
span.setAttribute("repoId", this.repoId);
try {
return storage.rm(this.repoId);
await storage.rm(this.repoId);
} finally {
this.model.isReseted = true;
await this.model.save();