Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarasikee committed Aug 7, 2022
1 parent d1911ba commit 9226619
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class Instance<T extends { _id: string }> {
const db = FileUtils.readJson<T>("./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
Expand Down

0 comments on commit 9226619

Please sign in to comment.