Skip to content

Commit 49ceb44

Browse files
committed
fix: Validate if chatwoot connection is available
1 parent f54a00a commit 49ceb44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ export class ChatwootService {
890890
sourceId?: string,
891891
quotedMsg?: MessageModel,
892892
) {
893-
if (sourceId) {
893+
if (sourceId && this.isImportHistoryAvailable()) {
894894
const messageAlreadySaved = await chatwootImport.getExistingSourceIds([sourceId]);
895895
if (messageAlreadySaved.size > 0) {
896896
this.logger.warn('Message already saved on chatwoot');

0 commit comments

Comments
 (0)