@xuda.io/account_module 1.2.1904 → 1.2.1906
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 +9 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2798,6 +2798,15 @@ export const not_spam_contact = async function (req, job_id, headers) {
|
|
|
2798
2798
|
for await (let conversation of conversations.docs) {
|
|
2799
2799
|
await ai_module.process_conversation(uid, conversation._id, account_profile_info, job_id, headers);
|
|
2800
2800
|
await ai_module.update_conversation_mood_level(uid, [{ uid: account_profile_info.uid, contact_id }], conversation._id, conversation.prompt, null, reference_id, conversation.reference_type === 'contacts', account_profile_info);
|
|
2801
|
+
|
|
2802
|
+
const conversation_items = await db_module.find_app_couch_query(account_profile_info.app_id, {
|
|
2803
|
+
selector: {
|
|
2804
|
+
docType: 'chat_conversation_item',
|
|
2805
|
+
conversation_id: conversation._id,
|
|
2806
|
+
stat: 3,
|
|
2807
|
+
process_stat: 'partial',
|
|
2808
|
+
},
|
|
2809
|
+
});
|
|
2801
2810
|
}
|
|
2802
2811
|
|
|
2803
2812
|
// update_conversation_mood_level
|