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; + // } }