Skip to content

Commit

Permalink
Updating app files
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsislimadev committed May 14, 2024
1 parent 2765be9 commit a044e8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class Database {
.map((path) => new DatabaseObject(this, path))
}

listJSON () {
return this.list().map((obj) => obj.toJSON())
}

find(search = {}) {
return this.list().find((data) =>
Object.keys(search).every((key) =>
Expand Down

0 comments on commit a044e8e

Please sign in to comment.