@jetthai/cuora 1.1.297-dev-2 → 1.1.297-dev-3

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.297-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.297-dev-2...v1.1.297-dev-3) (2024-08-26)
6
+
5
7
  ### [1.1.297-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.297-dev-1...v1.1.297-dev-2) (2024-08-26)
6
8
 
7
9
  ### [1.1.297-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.297...v1.1.297-dev-1) (2024-08-22)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.297-dev-2",
3
+ "version": "1.1.297-dev-3",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -344,9 +344,9 @@ export default function (request) {
344
344
  const isCustomerReply = data[0]?.from === 'SYSTEM'
345
345
  let combindedContent = ''
346
346
  if (isCustomerReply) {
347
- combindedContent = '-\n-------------------------\n' + data[0].content + '\n-------------------------\n' + data[1].content
347
+ combindedContent = '-\n-------------------------\n' + data[0]?.content || '' + '\n-------------------------\n' + data[1]?.content || ''
348
348
  } else {
349
- combindedContent = `-\n-------------------------\n${data[0].content}`
349
+ combindedContent = `-\n-------------------------\n${data[0]?.content || ''}`
350
350
  }
351
351
  return {
352
352
  messageDetail: data,