@@ -57,7 +57,7 @@ export class TypebotService {
5757
5858 if ( session ) {
5959 if ( status === 'closed' ) {
60- const found_session : Session [ ] = findData . sessions . splice ( findData . sessions . indexOf ( session ) , 1 ) ;
60+ findData . sessions . splice ( findData . sessions . indexOf ( session ) , 1 ) ;
6161
6262 const typebotData = {
6363 enabled : findData . enabled ,
@@ -68,7 +68,7 @@ export class TypebotService {
6868 delay_message : findData . delay_message ,
6969 unknown_message : findData . unknown_message ,
7070 listening_from_me : findData . listening_from_me ,
71- sessions : found_session ,
71+ sessions : findData . sessions ,
7272 } ;
7373
7474 this . create ( instance , typebotData ) ;
@@ -106,7 +106,7 @@ export class TypebotService {
106106 delay_message : findData . delay_message ,
107107 unknown_message : findData . unknown_message ,
108108 listening_from_me : findData . listening_from_me ,
109- sessions : findData . sessions . splice ( findData . sessions . indexOf ( session ) , 1 ) ,
109+ sessions : findData . sessions ,
110110 } ;
111111
112112 this . create ( instance , typebotData ) ;
0 commit comments