We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2620064 commit fe87f07Copy full SHA for fe87f07
src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts
@@ -572,6 +572,11 @@ export class ChatwootService {
572
this.logger.error(`Error getting conversation: ${error}`);
573
conversationExists = false;
574
}
575
+ if (conversationExists && conversationExists.status === 'resolved') {
576
+ this.logger.verbose('Conversation was resolved, re-calling createConversation');
577
+ this.cache.delete(cacheKey);
578
+ return await this.createConversation(instance, body);
579
+ }
580
if (!conversationExists) {
581
this.logger.verbose('Conversation does not exist, re-calling createConversation');
582
this.cache.delete(cacheKey);
0 commit comments