fix: add missing await

This commit is contained in:
tdurieux
2024-04-01 15:36:16 +01:00
parent 35f4b4ce52
commit 4881719160
2 changed files with 3 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ export default class AnonymizedFile {
}
const out = await this.repository.source?.getFileContent(this);
this.repository.model.isReseted = false;
this.repository.updateStatus(RepositoryStatus.READY);
await this.repository.updateStatus(RepositoryStatus.READY);
return out;
} finally {
span.end();

View File

@@ -163,7 +163,8 @@ export default class PullRequest {
if (this.status === RepositoryStatus.READY) return;
await this.updateStatus(RepositoryStatus.PREPARING);
await this.updateIfNeeded({ force: true });
return this.updateStatus(RepositoryStatus.READY);
await this.updateStatus(RepositoryStatus.READY);
return;
}
/**