mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
fix: start session
This commit is contained in:
@@ -121,6 +121,12 @@ export class TypebotService {
|
||||
}
|
||||
|
||||
if (startSession) {
|
||||
const session = sessions.find((session) => session.remoteJid === remoteJid);
|
||||
|
||||
if (session) {
|
||||
sessions.splice(sessions.indexOf(session), 1);
|
||||
}
|
||||
|
||||
const response = await this.createNewSession(instance, {
|
||||
url: url,
|
||||
typebot: typebot,
|
||||
|
||||
Reference in New Issue
Block a user