From ec72bd823e092ccb1635fd2e44621fd2b0dd05fc Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 15 Aug 2022 02:22:36 +0300 Subject: [PATCH] Update db.js --- scripts/core/db.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/core/db.js b/scripts/core/db.js index fc3f117553..db3fd527f8 100644 --- a/scripts/core/db.js +++ b/scripts/core/db.js @@ -63,6 +63,10 @@ class Database { return this.db.find(query) } + all() { + return this.find({}) + } + remove(query, options) { return this.db.remove(query, options) }