@hivegpt/hiveai-angular 0.0.310 → 0.0.312

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -667,6 +667,7 @@ class ChatDrawerComponent {
667
667
  copied: false,
668
668
  isCollapsedTrue: false,
669
669
  WorkflowExecutionId: chat.WorkflowExecutionId,
670
+ _id: chat._id
670
671
  });
671
672
  }
672
673
  if (chat.Type == 'ai') {
@@ -685,6 +686,7 @@ class ChatDrawerComponent {
685
686
  time: formatTimeStamps(this.timezone, chat.InsertTimestamp),
686
687
  copied: false,
687
688
  isCollapsedTrue: false,
689
+ _id: chat._id
688
690
  });
689
691
  this.showFeedBackIconsIndex = this.chatLog.length - 1;
690
692
  }
@@ -961,6 +963,7 @@ class ChatDrawerComponent {
961
963
  });
962
964
  }
963
965
  submitFeedback(flag, message) {
966
+ console.log(message);
964
967
  this.feedbackDone = true;
965
968
  this.showFeedBackIconsIndex = null;
966
969
  const conversation_id = this.conversationService.getKey(this.botId);
@@ -972,7 +975,7 @@ class ChatDrawerComponent {
972
975
  'x-api-key': 'Conversation_WIz/qAm+EEmfOkFaUA/weA==',
973
976
  'hive-bot-id': this.botId
974
977
  },
975
- body: JSON.stringify({ isHelpful: flag, messageId: message._id }),
978
+ body: JSON.stringify({ messageId: message._id, isHelpful: flag }),
976
979
  }).then(() => {
977
980
  if (flag) {
978
981
  this.chatLog.push({