Skip to content

Commit

Permalink
[FIXBUG]: fix channel permissions checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Dec 8, 2023
1 parent db29ed0 commit dc994ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,13 @@ const partial =

const fetchMethod = async (msg: any) => {

Check warning on line 46 in src/index.ts

View workflow job for this annotation

GitHub Actions / test/node 18.x/ubuntu-latest

Unexpected any. Specify a different type

Check warning on line 46 in src/index.ts

View workflow job for this annotation

GitHub Actions / test/node 18.x/ubuntu-latest

Unexpected any. Specify a different type

console.log(11)
logger.info({ msg }, 'fetchMethod is running');
if (!msg) return;
const { content } = msg;
const saga = await MBConnection.models.Saga.findOne({ sagaId: content.uuid });
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'];
Expand All @@ -67,7 +64,6 @@ const fetchMethod = async (msg: any) => {
await guildExtraction(connection, client, platform);
}
}

logger.info({ msg }, 'fetchMethod is done');
};

Expand Down

0 comments on commit dc994ae

Please sign in to comment.