Skip to content

Commit

Permalink
fix(voice): Force NCCO actions to set value for NCCO type to avoid JS…
Browse files Browse the repository at this point in the history
… problems (#853)
  • Loading branch information
dragonmantank authored Aug 9, 2023
1 parent 8dd49dd commit 6bce17b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/voice/lib/classes/NCCO/Connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class Connect implements ConnectAction, Serializable {

serializeToNCCO() {
const data: ConnectAction = {
action: this.action,
action: NCCOActions.CONNECT,
endpoint: this.endpoint,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/voice/lib/classes/NCCO/Conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Conversation implements ConversationAction, Serializable {

serializeToNCCO() {
const data: ConversationAction = {
action: this.action,
action: NCCOActions.CONVERSATION,
name: this.name,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/voice/lib/classes/NCCO/Record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class Record implements RecordAction {

serializeToNCCO(): RecordAction {
const data: RecordAction = {
action: this.action,
action: NCCOActions.RECORD,
};

if (this.format) {
Expand Down
2 changes: 1 addition & 1 deletion packages/voice/lib/classes/NCCO/Stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Stream implements StreamAction, Serializable {

serializeToNCCO() {
const data: StreamAction = {
action: this.action,
action: NCCOActions.STREAM,
streamUrl: this.streamUrl,
};

Expand Down

0 comments on commit 6bce17b

Please sign in to comment.