mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-24 14:17:47 -06:00
Fix prettier errors
This commit is contained in:
5
src/cache/cacheengine.ts
vendored
5
src/cache/cacheengine.ts
vendored
@@ -10,7 +10,10 @@ const logger = new Logger('CacheEngine');
|
||||
export class CacheEngine {
|
||||
private engine: ICache;
|
||||
|
||||
constructor(private readonly configService: ConfigService, module: string) {
|
||||
constructor(
|
||||
private readonly configService: ConfigService,
|
||||
module: string,
|
||||
) {
|
||||
const cacheConf = configService.get<CacheConf>('CACHE');
|
||||
|
||||
if (cacheConf?.REDIS?.ENABLED && cacheConf?.REDIS?.URI !== '') {
|
||||
|
||||
5
src/cache/localcache.ts
vendored
5
src/cache/localcache.ts
vendored
@@ -9,7 +9,10 @@ export class LocalCache implements ICache {
|
||||
private conf: CacheConfLocal;
|
||||
static localCache = new NodeCache();
|
||||
|
||||
constructor(private readonly configService: ConfigService, private readonly module: string) {
|
||||
constructor(
|
||||
private readonly configService: ConfigService,
|
||||
private readonly module: string,
|
||||
) {
|
||||
this.conf = this.configService.get<CacheConf>('CACHE')?.LOCAL;
|
||||
}
|
||||
|
||||
|
||||
5
src/cache/rediscache.ts
vendored
5
src/cache/rediscache.ts
vendored
@@ -11,7 +11,10 @@ export class RedisCache implements ICache {
|
||||
private client: RedisClientType;
|
||||
private conf: CacheConfRedis;
|
||||
|
||||
constructor(private readonly configService: ConfigService, private readonly module: string) {
|
||||
constructor(
|
||||
private readonly configService: ConfigService,
|
||||
private readonly module: string,
|
||||
) {
|
||||
this.conf = this.configService.get<CacheConf>('CACHE')?.REDIS;
|
||||
this.client = redisClient.getConnection();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user