From 45e9dd43e4ba3e45bf608e372888a731bf5f7595 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 14 Apr 2023 22:21:20 +0300 Subject: [PATCH] bleh --- src/MongoDB.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/MongoDB.ts b/src/MongoDB.ts index d80d3fc..c027700 100644 --- a/src/MongoDB.ts +++ b/src/MongoDB.ts @@ -307,17 +307,17 @@ class MongoDB { await this.#db.collection(collection).createIndex(indices); } - async getKey (key: string, collection = 'memoryStore') { - const response = await this.findOne(collection, { key }); - if (response) - return response.value; - return null; - } + // async getKey (key: string, collection = 'memoryStore') { + // const response = await this.findOne(collection, { key }); + // if (response) + // return response.value; + // return null; + // } - async setKey (key: string, value: object, collection = 'memoryStore') { - await this.updateOne(collection, { key }, { value }, true); - return value; - } + // async setKey (key: string, value: object, collection = 'memoryStore') { + // await this.updateOne(collection, { key }, { value }, true); + // return value; + // } }