fix: only create if is paused

This commit is contained in:
Gabriel Pastori 2023-12-11 12:42:09 -03:00
parent aa891489f0
commit 8e88f00fb2

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