feat: Sync lost messages on chatwoot

Runs the sync method every 30min
This commit is contained in:
Judson Cairo
2024-09-25 11:48:19 -03:00
parent 4ca141b4f4
commit e241cf4ee0
7 changed files with 129 additions and 27 deletions

View File

@@ -294,7 +294,7 @@ export class ChannelStartupService {
this.clearCacheChatwoot();
}
public async findChatwoot(): Promise<ChatwootDto> {
public async findChatwoot(): Promise<ChatwootDto | null> {
if (!this.configService.get<Chatwoot>('CHATWOOT').ENABLED) {
return null;
}