Skip to content

Commit 70ad1b0

Browse files
authored
Merge pull request #209 from quirrel-dev/upgrade-ioredis
upgrade ioredis
2 parents fdb5561 + ee33c88 commit 70ad1b0

File tree

8 files changed

+123
-123
lines changed

8 files changed

+123
-123
lines changed

package-lock.json

+91-96
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"@istanbuljs/nyc-config-typescript": "1.0.1",
3434
"@types/chai": "4.2.22",
3535
"@types/debug": "4.1.7",
36-
"@types/ioredis": "4.27.5",
3736
"@types/minimatch": "^3.0.5",
3837
"@types/mocha": "9.0.0",
3938
"@types/node": "16.6.1",
@@ -46,8 +45,8 @@
4645
"typescript": "4.4.3"
4746
},
4847
"dependencies": {
49-
"ioredis": "^4.27.1",
50-
"ioredis-mock": "^5.5.6",
48+
"ioredis": "^5.2.3",
49+
"ioredis-mock": "^8.2.2",
5150
"minimatch": "^3.0.4",
5251
"opentracing": "^0.14.5",
5352
"pino": "^6.11.3"

src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ export default class Owl<ScheduleType extends string> {
7373
return new Activity(this.activityRedis, onEvent, options);
7474
}
7575

76+
public async close() {
77+
await this.activityRedis?.quit();
78+
}
79+
7680
public async runMigrations() {
7781
const client = this.redisFactory();
7882
await migrate(client);

0 commit comments

Comments
 (0)