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

Commit b219b8a

Browse files
authored
Upgrading ioredis and Typescript (#215)
1 parent efc4a54 commit b219b8a

File tree

3 files changed

+36
-42
lines changed

3 files changed

+36
-42
lines changed

modules/module.base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class Module {
5454
this.cluster = new IORedis.Cluster(this.clusterNodes, this.clusterOptions);
5555
}
5656
else {
57-
this.redis = new IORedis(this.redisOptions);
57+
this.redis = new IORedis.default(this.redisOptions);
5858
}
5959
}
6060

@@ -82,7 +82,7 @@ export class Module {
8282
}
8383
const response = this.clusterNodes ?
8484
await this.cluster.cluster.call(data.command, data.args)
85-
: await this.redis.send_command(data.command, data.args);
85+
: await this.redis.call(data.command, data.args);
8686

8787
if(this.showDebugLogs){
8888
console.log(`${this.name}: command ${data.command} responded with ${response}`);

package-lock.json

Lines changed: 31 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"@microsoft/tsdoc": "0.13.2",
5757
"@types/chai": "4.2.14",
5858
"@types/eslint": "7.2.5",
59-
"@types/ioredis": "4.17.6",
59+
"@types/ioredis": "4.28.10",
6060
"@types/mocha": "8.0.3",
6161
"@types/node": "14.14.1",
6262
"@typescript-eslint/eslint-plugin": "4.8.2",
@@ -69,9 +69,9 @@
6969
"npm-package-deployer": "0.2.9",
7070
"ts-node": "9.0.0",
7171
"typedoc": "0.22.11",
72-
"typescript": "4.1.2"
72+
"typescript": "4.2.3"
7373
},
7474
"dependencies": {
75-
"ioredis": "4.27.4"
75+
"ioredis": "5.2.3"
7676
}
7777
}

0 commit comments

Comments
 (0)