From dc994aeb7d81c263dcc033d889da099d8a40e5ff Mon Sep 17 00:00:00 2001 From: Behzad Rabiei Date: Fri, 8 Dec 2023 09:40:29 +0400 Subject: [PATCH] [FIXBUG]: fix channel permissions checker --- package-lock.json | 8 ++++---- package.json | 2 +- src/index.ts | 4 ---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 45df096c..b3cbcb27 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "ISC", "dependencies": { "@sentry/node": "^7.51.2", - "@togethercrew.dev/db": "^3.0.16", + "@togethercrew.dev/db": "^3.0.18", "@togethercrew.dev/tc-messagebroker": "^0.0.40", "babel-jest": "^29.5.0", "bullmq": "^3.14.0", @@ -3038,9 +3038,9 @@ } }, "node_modules/@togethercrew.dev/db": { - "version": "3.0.16", - "resolved": "https://registry.npmjs.org/@togethercrew.dev/db/-/db-3.0.16.tgz", - "integrity": "sha512-HzvK7ckkdNzpRhlj/94D1GLPUZqZGyozcZfkz2vN25mByMDe+NPE/IC2LK8RlcdZHLRjlUiyvfsbv+7+h9iqcA==", + "version": "3.0.18", + "resolved": "https://registry.npmjs.org/@togethercrew.dev/db/-/db-3.0.18.tgz", + "integrity": "sha512-LIGkRnChhja1hnHnVk9qfaZXfCoruUsYVtMvt2v4IOzFLvUt6DeVqvrvSheK5yf63ikkwdiQMLyx62WNLbtUmw==", "dependencies": { "discord.js": "^14.7.1", "joi": "^17.7.0", diff --git a/package.json b/package.json index ee20b1d3..c58495ab 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "homepage": "https://github.com/Behzad-rabiei/tc-discordBot#readme", "dependencies": { "@sentry/node": "^7.51.2", - "@togethercrew.dev/db": "^3.0.16", + "@togethercrew.dev/db": "^3.0.18", "@togethercrew.dev/tc-messagebroker": "^0.0.40", "babel-jest": "^29.5.0", "bullmq": "^3.14.0", diff --git a/src/index.ts b/src/index.ts index 464f5b1d..cfe29625 100644 --- a/src/index.ts +++ b/src/index.ts @@ -45,7 +45,6 @@ const partial = const fetchMethod = async (msg: any) => { - console.log(11) logger.info({ msg }, 'fetchMethod is running'); if (!msg) return; const { content } = msg; @@ -53,8 +52,6 @@ const fetchMethod = async (msg: any) => { logger.info({ saga: saga.data }, 'the saga info'); const platformId = saga.data['platformId']; const platform = await platformService.getPlatform({ _id: platformId }); - console.log(saga) - console.log(platform) if (platform) { const isPlatformCreated = saga.data['created']; @@ -67,7 +64,6 @@ const fetchMethod = async (msg: any) => { await guildExtraction(connection, client, platform); } } - logger.info({ msg }, 'fetchMethod is done'); };