Merge pull request #249 from gabrielpastori1/typebot-auto-create-session

fix: only create if is paused
This commit is contained in:
Davidson Gomes
2023-12-11 12:57:51 -03:00
committed by GitHub

View File

@@ -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(),