From 7f2141e832076d7274c48ff6303290cdbc33a830 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Fri, 17 Feb 2023 09:40:15 +0800 Subject: [PATCH] fix store.update --- store/index.ts | 1 + 1 file changed, 1 insertion(+) 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"); } }