Browse Source

chore: lint

pull/7392/head
Pranav C 10 months ago
parent
commit
e296e41a6d
  1. 5
      packages/nocodb/src/cache/RedisCacheMgr.ts

5
packages/nocodb/src/cache/RedisCacheMgr.ts vendored

@ -14,7 +14,10 @@ export default class RedisCacheMgr extends CacheMgr {
this.client = new Redis(config);
// avoid flushing db in worker container
if (process.env.NC_WORKER_CONTAINER !== 'true' && process.env.NC_CLOUD !== 'true') {
if (
process.env.NC_WORKER_CONTAINER !== 'true' &&
process.env.NC_CLOUD !== 'true'
) {
// flush the existing db with selected key (Default: 0)
this.client.flushdb();
}

Loading…
Cancel
Save