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
commit 87a8e25662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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