Skip to content

Commit 1379228

Browse files
committed
fix: Revert pull request #523
1 parent d6e19b9 commit 1379228

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Fix audio encoding
55
* Recovering messages lost
66
* Adjusts in proxy
7+
* Revert pull request #523
78

89
# 1.7.2 (2024-04-12 17:31)
910

src/api/integrations/typebot/services/typebot.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)