Skip to content

Commit

Permalink
Merge pull request #507 from fabrykowski/master
Browse files Browse the repository at this point in the history
feat: prepare for ioredis v5
  • Loading branch information
davidyaha committed Jul 11, 2022
2 parents f10d1e6 + d8fdf73 commit b412078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redis-pubsub.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Cluster, Ok, Redis, RedisOptions} from 'ioredis';
import {Cluster, Redis, RedisOptions} from 'ioredis';
import {PubSubEngine} from 'graphql-subscriptions';
import {PubSubAsyncIterator} from './pubsub-async-iterator';

Expand Down Expand Up @@ -152,7 +152,7 @@ export class RedisPubSub implements PubSubEngine {
return this.redisPublisher;
}

public close(): Promise<Ok[]> {
public close(): Promise<'OK'[]> {
return Promise.all([
this.redisPublisher.quit(),
this.redisSubscriber.quit(),
Expand Down

0 comments on commit b412078

Please sign in to comment.