@xuda.io/ai_module 1.1.4202 → 1.1.4204

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
@@ -4397,10 +4397,10 @@ const update_conversation_mood_level = async function (conversation_id, prompt,
4397
4397
  };
4398
4398
  const receiver_contact_ret = await account_module.find_contact_query(sender_uid, opt);
4399
4399
 
4400
- if (!receiver_contact_ret?.rows?.length) {
4400
+ if (!receiver_contact_ret?.docs?.length) {
4401
4401
  throw new Error('receiver contact id not found');
4402
4402
  }
4403
- const receiver_contact_id = receiver_contact_ret?.rows[0].id;
4403
+ const receiver_contact_id = receiver_contact_ret?.docs[0]._id;
4404
4404
  let receiver_contact_doc = await account_module.get_contact(receiver_uid, receiver_contact_id);
4405
4405
  receiver_contact_doc.contact_mood_level = mood_level_obj.mood_level;
4406
4406
  receiver_contact_doc.ts = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4202",
3
+ "version": "1.1.4204",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",