feat: pusher event integration

This commit is contained in:
Davidson Gomes
2024-10-11 07:01:38 -03:00
parent f38f3e5ba5
commit 29e2cfaf96
19 changed files with 540 additions and 29 deletions

View File

@@ -1,8 +1,8 @@
import { ICache } from '@api/abstract/abstract.cache';
import { CacheConf, CacheConfLocal, ConfigService } from '@config/env.config';
import NodeCache from 'node-cache';
import { BufferJSON } from 'baileys';
import { Logger } from '@config/logger.config';
import { BufferJSON } from 'baileys';
import NodeCache from 'node-cache';
export class LocalCache implements ICache {
private readonly logger = new Logger('LocalCache');
@@ -74,7 +74,6 @@ export class LocalCache implements ICache {
hash[field] = json;
LocalCache.localCache.set(this.buildKey(key), hash);
} catch (error) {
this.logger.error(error);
}