mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-05 05:08:07 +02:00
fix repository status
This commit is contained in:
+2
-2
@@ -164,7 +164,7 @@ export default class Repository {
|
|||||||
*/
|
*/
|
||||||
async anonymize() {
|
async anonymize() {
|
||||||
if (this._model.status == "ready") return;
|
if (this._model.status == "ready") return;
|
||||||
await this.updateStatus("queue");
|
await this.updateStatus("preparing");
|
||||||
await this.files();
|
await this.files();
|
||||||
await this.updateStatus("ready");
|
await this.updateStatus("ready");
|
||||||
}
|
}
|
||||||
@@ -202,7 +202,7 @@ export default class Repository {
|
|||||||
* Remove the repository
|
* Remove the repository
|
||||||
*/
|
*/
|
||||||
async remove() {
|
async remove() {
|
||||||
this._model.size = 0;
|
await this.updateStatus("removed");
|
||||||
await this.resetSate();
|
await this.resetSate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user