From 17f4f49db7142f565150af135d1da4e0ee610e8a Mon Sep 17 00:00:00 2001 From: tdurieux Date: Wed, 11 Aug 2021 18:35:37 +0200 Subject: [PATCH] fix repository status --- src/Repository.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Repository.ts b/src/Repository.ts index 8f0a769..f2a49fd 100644 --- a/src/Repository.ts +++ b/src/Repository.ts @@ -164,7 +164,7 @@ export default class Repository { */ async anonymize() { if (this._model.status == "ready") return; - await this.updateStatus("queue"); + await this.updateStatus("preparing"); await this.files(); await this.updateStatus("ready"); } @@ -202,7 +202,7 @@ export default class Repository { * Remove the repository */ async remove() { - this._model.size = 0; + await this.updateStatus("removed"); await this.resetSate(); }