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