Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
Upgrading ioredis and Typescript (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
danitseitlin authored Sep 7, 2022
1 parent efc4a54 commit b219b8a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 42 deletions.
4 changes: 2 additions & 2 deletions modules/module.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class Module {
this.cluster = new IORedis.Cluster(this.clusterNodes, this.clusterOptions);
}
else {
this.redis = new IORedis(this.redisOptions);
this.redis = new IORedis.default(this.redisOptions);
}
}

Expand Down Expand Up @@ -82,7 +82,7 @@ export class Module {
}
const response = this.clusterNodes ?
await this.cluster.cluster.call(data.command, data.args)
: await this.redis.send_command(data.command, data.args);
: await this.redis.call(data.command, data.args);

if(this.showDebugLogs){
console.log(`${this.name}: command ${data.command} responded with ${response}`);
Expand Down
68 changes: 31 additions & 37 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@microsoft/tsdoc": "0.13.2",
"@types/chai": "4.2.14",
"@types/eslint": "7.2.5",
"@types/ioredis": "4.17.6",
"@types/ioredis": "4.28.10",
"@types/mocha": "8.0.3",
"@types/node": "14.14.1",
"@typescript-eslint/eslint-plugin": "4.8.2",
Expand All @@ -69,9 +69,9 @@
"npm-package-deployer": "0.2.9",
"ts-node": "9.0.0",
"typedoc": "0.22.11",
"typescript": "4.1.2"
"typescript": "4.2.3"
},
"dependencies": {
"ioredis": "4.27.4"
"ioredis": "5.2.3"
}
}

0 comments on commit b219b8a

Please sign in to comment.