mirror of
https://github.com/vale981/apollo-server
synced 2025-03-04 17:21:42 -05:00
Work around typing issue with promisified Redis client
This commit is contained in:
parent
fd34771841
commit
823d68d318
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ export class RedisCache implements KeyValueCache {
|
|||
private loader: DataLoader<string, string>;
|
||||
|
||||
constructor(options: Redis.ClientOpts) {
|
||||
const client = Redis.createClient(options);
|
||||
const client = Redis.createClient(options) as any;
|
||||
|
||||
// promisify client calls for convenience
|
||||
client.mget = promisify(client.mget).bind(client);
|
||||
|
|
Loading…
Add table
Reference in a new issue