mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
feat: add a flag to know if a repo has been reseted
This commit is contained in:
@@ -318,6 +318,8 @@ export default class Repository {
|
||||
* @returns
|
||||
*/
|
||||
async removeCache() {
|
||||
this.model.isReseted = true;
|
||||
await this.model.save();
|
||||
if (await storage.exists(this._model.repoId + "/")) {
|
||||
return storage.rm(this._model.repoId + "/");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user