From 957042059cd2fb8366fba8dbf07be991fa241522 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) }