New method of saving sessions to a file using worker

This commit is contained in:
Davidson Gomes
2024-06-01 09:54:56 -03:00
parent f7c9541f5e
commit 696261d749
12 changed files with 349 additions and 7 deletions

View File

@@ -22,6 +22,7 @@ import {
WebhookModel,
WebsocketModel,
} from '../models';
import { ProviderFiles } from '../provider/sessions';
import { RepositoryBroker } from '../repository/repository.manager';
import { Integration } from '../types/wa.types';
import { CacheService } from './cache.service';
@@ -36,6 +37,7 @@ export class WAMonitoringService {
private readonly cache: CacheService,
private readonly chatwootCache: CacheService,
private readonly messagesLostCache: CacheService,
private readonly providerFiles: ProviderFiles,
) {
this.logger.verbose('instance created');
@@ -349,6 +351,7 @@ export class WAMonitoringService {
this.cache,
this.chatwootCache,
this.messagesLostCache,
this.providerFiles,
);
instance.instanceName = name;
@@ -360,6 +363,7 @@ export class WAMonitoringService {
this.cache,
this.chatwootCache,
this.messagesLostCache,
this.providerFiles,
);
instance.instanceName = name;