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