diff --git a/scripts/redisScript.js b/scripts/redisScript.js index 9e6dcd1fef6..2ab437a348f 100644 --- a/scripts/redisScript.js +++ b/scripts/redisScript.js @@ -1,5 +1,5 @@ -import {config} from 'packages/commonwealth/server/config.js'; -import {createClient, RedisClientOptions} from 'redis'; +import { config } from 'packages/commonwealth/server/config.js'; +import { createClient } from 'redis'; const redis_url = config.CACHE.REDIS_URL; const CONNECT_TIMEOUT = 5000; @@ -24,15 +24,11 @@ if (redis_url.includes('rediss')) { const client = createClient(redisOptions); -this.client.on('ready', () => - console.log(`RedisCache connection ready`), -); -this.client.on('reconnecting', () => - console.log(`RedisCache reconnecting...`), -); +this.client.on('ready', () => console.log(`RedisCache connection ready`)); +this.client.on('reconnecting', () => console.log(`RedisCache reconnecting...`)); this.client.on('end', () => console.log(`RedisCache disconnected`)); -this.client.on('error', (err: Error) => { +this.client.on('error', (err) => { console.log(err.message, err); }); -void this.client.connect(); \ No newline at end of file +void this.client.connect();