mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-21 19:47:21 -06:00
fix: Validate if chatwoot connection is available
This commit is contained in:
parent
f54a00a07f
commit
49ceb44102
@ -890,7 +890,7 @@ export class ChatwootService {
|
|||||||
sourceId?: string,
|
sourceId?: string,
|
||||||
quotedMsg?: MessageModel,
|
quotedMsg?: MessageModel,
|
||||||
) {
|
) {
|
||||||
if (sourceId) {
|
if (sourceId && this.isImportHistoryAvailable()) {
|
||||||
const messageAlreadySaved = await chatwootImport.getExistingSourceIds([sourceId]);
|
const messageAlreadySaved = await chatwootImport.getExistingSourceIds([sourceId]);
|
||||||
if (messageAlreadySaved.size > 0) {
|
if (messageAlreadySaved.size > 0) {
|
||||||
this.logger.warn('Message already saved on chatwoot');
|
this.logger.warn('Message already saved on chatwoot');
|
||||||
|
Loading…
Reference in New Issue
Block a user