@xuda.io/ai_module 1.1.4190 → 1.1.4192
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/index.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4348,7 +4348,7 @@ const update_conversation_mood_level = async function (conversation_id, prompt,
|
|
|
4348
4348
|
throw new Error('sender contact id not found');
|
|
4349
4349
|
}
|
|
4350
4350
|
const sender_contact_id = sender_contact_ret?.rows[0].id;
|
|
4351
|
-
let sender_contact_doc = await
|
|
4351
|
+
let sender_contact_doc = await account_module.get_contact(sender_uid, sender_contact_id);
|
|
4352
4352
|
sender_contact_doc.contact_mood_level = mood_level_obj.mood_level;
|
|
4353
4353
|
sender_contact_doc.ts = Date.now();
|
|
4354
4354
|
await db_module.save_couch_doc_native('xuda_contacts', sender_contact_doc);
|
|
@@ -4369,7 +4369,7 @@ const update_conversation_mood_level = async function (conversation_id, prompt,
|
|
|
4369
4369
|
throw new Error('receiver contact id not found');
|
|
4370
4370
|
}
|
|
4371
4371
|
const receiver_contact_id = receiver_contact_ret?.rows[0].id;
|
|
4372
|
-
let receiver_contact_doc = await
|
|
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
4375
|
await db_module.save_couch_doc_native('xuda_contacts', receiver_contact_doc);
|