From 92266193e987ec4324ee405f3bd7124f3cb0d45f Mon Sep 17 00:00:00 2001 From: Taras Date: Sun, 7 Aug 2022 11:20:21 +0200 Subject: [PATCH] Initial commit --- src/Instance.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Instance.ts b/src/Instance.ts index b2fbcef..2d51008 100644 --- a/src/Instance.ts +++ b/src/Instance.ts @@ -23,6 +23,7 @@ export class Instance { const db = FileUtils.readJson("./database/db.json") const filtered_table = db[this._schema.name] .filter(row => row._id !== this._fields._id) + FileUtils.writeJson("./database/db.json", { ...db, [this._schema.name]: filtered_table