fix store.update

This commit is contained in:
2023-02-17 09:40:15 +08:00
parent 55f48de4db
commit 7f2141e832

View File

@@ -26,6 +26,7 @@ class Store {
delete this.record[key];
}
public async update(record: Record<string, string>) {
this.record = record;
await write(this.filename, JSON.stringify(this.record), "utf8");
}
}