diff --git a/store/index.ts b/store/index.ts index 2a54bdc..27317ca 100644 --- a/store/index.ts +++ b/store/index.ts @@ -26,6 +26,7 @@ class Store { delete this.record[key]; } public async update(record: Record) { + this.record = record; await write(this.filename, JSON.stringify(this.record), "utf8"); } }