@xuda.io/ai_module 1.1.4604 → 1.1.4605

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4388,7 +4388,7 @@ const chat_note = async function (req, job_id, headers) {
4388
4388
 
4389
4389
  await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info);
4390
4390
 
4391
- const item = await client.conversations.items.create(conversation_id, {
4391
+ const item = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
4392
4392
  items: [
4393
4393
  {
4394
4394
  type: 'message',
@@ -4398,7 +4398,7 @@ const chat_note = async function (req, job_id, headers) {
4398
4398
  ],
4399
4399
  });
4400
4400
 
4401
- let obj = { id: item.data[0].id, ts: Date.now(), uid, read: true, conversation_type: 'note' };
4401
+ // let obj = { id: item.data[0].id, ts: Date.now(), uid, read: true, conversation_type: 'note' };
4402
4402
 
4403
4403
  // sender_conversation_doc.messages.push(obj);
4404
4404
  // await db_module.save_app_couch_doc_native(sender_app_id, sender_conversation_doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4604",
3
+ "version": "1.1.4605",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",