Skip to content

Commit

Permalink
bug-fixed: connector not updated while adding new command
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Sep 24, 2024
1 parent 3e5687a commit 73733f2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class CdsActionDTMFFormComponent implements OnInit {
this.arrayResponses[previousPos-1] = waitCur;
this.arrayResponses[previousPos] = msgCur;
// this.logger.log( 'DROP REPLY ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.intentSelected};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand All @@ -187,7 +187,7 @@ export class CdsActionDTMFFormComponent implements OnInit {
to = from - 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
// this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand All @@ -206,7 +206,7 @@ export class CdsActionDTMFFormComponent implements OnInit {
to = from + 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
// this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class CdsActionVoiceComponent implements OnInit {
this.arrayResponses[previousPos-1] = waitCur;
this.arrayResponses[previousPos] = msgCur;
// this.logger.log( 'DROP REPLY ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.intentSelected};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand All @@ -187,7 +187,7 @@ export class CdsActionVoiceComponent implements OnInit {
to = from - 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
// this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand All @@ -206,7 +206,7 @@ export class CdsActionVoiceComponent implements OnInit {
to = from + 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
// this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export class CdsActionReplyComponent implements OnInit {
this.arrayResponses[previousPos-1] = waitCur;
this.arrayResponses[previousPos] = msgCur;
// this.logger.log( 'DROP REPLY ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.intentSelected};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand All @@ -193,7 +193,7 @@ export class CdsActionReplyComponent implements OnInit {
to = from - 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
// this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand All @@ -212,7 +212,7 @@ export class CdsActionReplyComponent implements OnInit {
to = from + 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
// this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class CdsActionReplyV2Component implements OnInit {
this.arrayResponses[previousPos-1] = waitCur;
this.arrayResponses[previousPos] = msgCur;
// this.logger.log( 'DROP REPLY ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.intentSelected};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand All @@ -232,7 +232,7 @@ export class CdsActionReplyV2Component implements OnInit {
to = from - 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
// this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand All @@ -251,7 +251,7 @@ export class CdsActionReplyV2Component implements OnInit {
to = from + 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
// this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.id);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
Expand Down

0 comments on commit 73733f2

Please sign in to comment.