@xuda.io/ai_module 1.1.5499 → 1.1.5501

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.
Files changed (2) hide show
  1. package/index.mjs +2 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5119,9 +5119,8 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
5119
5119
  let contact_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, contact_id);
5120
5120
  const conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_id);
5121
5121
 
5122
- let item;
5123
5122
  try {
5124
- item = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
5123
+ const item = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
5125
5124
  items: [
5126
5125
  {
5127
5126
  type: 'message',
@@ -5134,7 +5133,7 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
5134
5133
  throw err;
5135
5134
  }
5136
5135
  } catch (err) {
5137
- return { code: -15, data: err.message };
5136
+ throw err;
5138
5137
  }
5139
5138
  };
5140
5139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5499",
3
+ "version": "1.1.5501",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",