mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-06 21:57:57 +02:00
fix: fix execution order in removeCache
This commit is contained in:
@@ -456,7 +456,7 @@ export default class Repository {
|
|||||||
.startSpan("Repository.removeCache");
|
.startSpan("Repository.removeCache");
|
||||||
span.setAttribute("repoId", this.repoId);
|
span.setAttribute("repoId", this.repoId);
|
||||||
try {
|
try {
|
||||||
return storage.rm(this.repoId);
|
await storage.rm(this.repoId);
|
||||||
} finally {
|
} finally {
|
||||||
this.model.isReseted = true;
|
this.model.isReseted = true;
|
||||||
await this.model.save();
|
await this.model.save();
|
||||||
|
|||||||
Reference in New Issue
Block a user