Skip to content

Commit 4fadf64

Browse files
Merge pull request #1264 from ygorsantana/fix/expiration-useless
Fix: Expiration being useless on awaitUser false
2 parents ada63b5 + 2f1df73 commit 4fadf64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/api/integrations/chatbot/typebot/controllers/typebot.controller.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,10 +1018,6 @@ export class TypebotController extends ChatbotController implements ChatbotContr
10181018
return;
10191019
}
10201020

1021-
if (session && !session.awaitUser) {
1022-
return;
1023-
}
1024-
10251021
if (debounceTime && debounceTime > 0) {
10261022
this.processDebounce(this.userMessageDebounce, content, remoteJid, debounceTime, async (debouncedContent) => {
10271023
await this.typebotService.processTypebot(

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,10 @@ export class TypebotService {
741741
}
742742
}
743743

744+
if (session && !session.awaitUser) {
745+
return;
746+
}
747+
744748
if (session && session.status !== 'opened') {
745749
return;
746750
}

0 commit comments

Comments
 (0)