From eca213e31d74c3e018a0647b19450e761b407207 Mon Sep 17 00:00:00 2001 From: Burlone <108557545+burlone0@users.noreply.github.com> Date: Thu, 3 Oct 2024 21:37:35 +0200 Subject: [PATCH] fixed keyv error --- README.md | 1 + index.js | 2 ++ package-lock.json | 19 +++++++++++++++++++ package.json | 1 + 4 files changed, 23 insertions(+) diff --git a/README.md b/README.md index 1e12aa4..7600996 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,7 @@ This **project/backend** is licensed under the **BSD 3-Clause License.** * [NotTacos](https://github.com/PhysicalDrive) - For adding the working challenges (Backend Part) * [zvivsp](https://github.com/zvivsp) - For creating the graphics * [joaco](https://github.com/ojotaa0124) - For helping with CloudStorage and responses stuff +* [xLoigi](https://github.com/xLoigi) - For helping with some files and support a creator stuff * [PRO100KatYT](https://github.com/PRO100KatYT) - For helping with some .json files * [Marvelco](https://github.com/MarvelcoOGFN) - For helping with Battle passes (s11 - s16) / (We are working on season 15 while season 14 is currently not possible :C) * [nade](https://github.com/gn1e) - For creating the base of the Auto Item Shop (Even if [Burlone](https://github.com/burlone0) solved many problems heheheh) diff --git a/index.js b/index.js index 95ce5ed..efeac64 100644 --- a/index.js +++ b/index.js @@ -46,6 +46,8 @@ global.kv = kv; global.exchangeCodes = []; +mongoose.set('strictQuery', true); + mongoose.connect(config.mongodb.database, () => { log.backend("App successfully connected to MongoDB!"); }); diff --git a/package-lock.json b/package-lock.json index 9801d08..b7c7e94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "express-rate-limit": "^6.7.0", "ioredis": "^5.4.1", "jsonwebtoken": "^8.5.1", + "keyv": "^4.2.2", "mongoose": "^6.6.5", "path": "^0.12.7", "uuid": "^9.0.0", @@ -1007,6 +1008,15 @@ "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.4.1.tgz", "integrity": "sha512-aJ9opVoXroQUPfovYP5kaj2lM7Jn02Gw13bL0lg9v0V7SaUc0qavPs0Eue7d2DcC3NjqI6QAUElXNsuZSeM+EA==" }, + "node_modules/keyv": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.2.2.tgz", + "integrity": "sha512-uYS0vKTlBIjNCAUqrjlxmruxOEiZxZIHXyp32sdcGmP+ukFrmWUnE//RcPXJH3Vxrni1H2gsQbjHE0bH7MtMQQ==", + "dependencies": { + "compress-brotli": "^1.3.6", + "json-buffer": "3.0.1" + } + }, "node_modules/lodash.includes": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", @@ -2644,6 +2654,15 @@ "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.4.1.tgz", "integrity": "sha512-aJ9opVoXroQUPfovYP5kaj2lM7Jn02Gw13bL0lg9v0V7SaUc0qavPs0Eue7d2DcC3NjqI6QAUElXNsuZSeM+EA==" }, + "keyv": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.2.2.tgz", + "integrity": "sha512-uYS0vKTlBIjNCAUqrjlxmruxOEiZxZIHXyp32sdcGmP+ukFrmWUnE//RcPXJH3Vxrni1H2gsQbjHE0bH7MtMQQ==", + "requires": { + "compress-brotli": "^1.3.6", + "json-buffer": "3.0.1" + } + }, "lodash.includes": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", diff --git a/package.json b/package.json index 7096c3c..6af95b7 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "express-rate-limit": "^6.7.0", "ioredis": "^5.4.1", "jsonwebtoken": "^8.5.1", + "keyv": "^4.2.2", "mongoose": "^6.6.5", "path": "^0.12.7", "uuid": "^9.0.0",