@xuda.io/ai_module 1.1.4193 → 1.1.4195

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 +1 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4372,7 +4372,7 @@ const update_conversation_mood_level = async function (conversation_id, prompt,
4372
4372
  let receiver_contact_doc = await account_module.get_contact(receiver_uid, receiver_contact_id);
4373
4373
  receiver_contact_doc.contact_mood_level = mood_level_obj.mood_level;
4374
4374
  receiver_contact_doc.ts = Date.now();
4375
- await db_module.save_couch_doc_native('xuda_contacts', receiver_contact_doc);
4375
+ await account_module.save_contact(receiver_uid, receiver_contact_doc);
4376
4376
  }
4377
4377
  } catch (err) {
4378
4378
  debugger;
@@ -4450,8 +4450,6 @@ const chat_note = async function (req, job_id, headers) {
4450
4450
  sender_conversation_doc.messages.push({ ...obj, ...{ read: false } });
4451
4451
  await db_module.save_app_couch_doc_native(sender_app_id, sender_conversation_doc);
4452
4452
 
4453
- // update_conversation_mood_level(conversation_id, prompt, uid, receiver_contact_doc.contact_uid, conversation_doc.reference_type === 'contacts');
4454
-
4455
4453
  return { code: 15, data: item };
4456
4454
  };
4457
4455
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4193",
3
+ "version": "1.1.4195",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",