cacheGroupMetadata

This commit is contained in:
Davidson Gomes
2024-06-05 21:25:55 -03:00
parent 52230edc5c
commit 8034e7f587
5 changed files with 87 additions and 21 deletions

View File

@@ -109,7 +109,7 @@ export const repository = new RepositoryBroker(
export const cache = new CacheService(new CacheEngine(configService, 'instance').getEngine());
const chatwootCache = new CacheService(new CacheEngine(configService, ChatwootService.name).getEngine());
const messagesLostCache = new CacheService(new CacheEngine(configService, 'baileys').getEngine());
const baileysCache = new CacheService(new CacheEngine(configService, 'baileys').getEngine());
const providerFiles = new ProviderFiles(configService);
export const waMonitor = new WAMonitoringService(
@@ -118,7 +118,7 @@ export const waMonitor = new WAMonitoringService(
repository,
cache,
chatwootCache,
messagesLostCache,
baileysCache,
providerFiles,
);
@@ -170,7 +170,7 @@ export const instanceController = new InstanceController(
proxyController,
cache,
chatwootCache,
messagesLostCache,
baileysCache,
providerFiles,
);
export const sendMessageController = new SendMessageController(waMonitor);