Skip to content

Commit

Permalink
Merge pull request #249 from gabrielpastori1/typebot-auto-create-session
Browse files Browse the repository at this point in the history
fix: only create if is paused
  • Loading branch information
DavidsonGomes authored Dec 11, 2023
2 parents d14505d + 8e88f00 commit 87a8e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/whatsapp/services/typebot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class TypebotService {
session.status = status;
}
});
} else {
} else if (status === 'paused') {
const session: Session = {
remoteJid: remoteJid,
sessionId: Math.floor(Math.random() * 10000000000).toString(),
Expand Down

0 comments on commit 87a8e25

Please sign in to comment.