We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1512ec5 commit 2d006daCopy full SHA for 2d006da
index.js
@@ -2,11 +2,10 @@ const _ = require('lodash');
2
const Promise = require('bluebird');
3
const DataLoader = require('dataloader');
4
const stringify = require('json-stable-stringify');
5
-const IORedis = require('ioredis');
6
7
module.exports = fig => {
8
const redis = fig.redis;
9
- const isIORedis = redis instanceof IORedis;
+ const isIORedis = redis.constructor.name !== 'RedisClient';
10
11
const parse = (resp, opt) =>
12
new Promise((resolve, reject) => {
0 commit comments