@xuda.io/account_module 1.2.1899 → 1.2.1901
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 +5 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2769,6 +2769,7 @@ export const not_spam_contact = async function (req, job_id, headers) {
|
|
|
2769
2769
|
const emails = await db_module.find_app_couch_query(account_profile_info.app_id, {
|
|
2770
2770
|
selector: {
|
|
2771
2771
|
docType: 'email',
|
|
2772
|
+
contact_id,
|
|
2772
2773
|
stat: 3,
|
|
2773
2774
|
process_stat: 'partial',
|
|
2774
2775
|
},
|
|
@@ -2787,14 +2788,16 @@ export const not_spam_contact = async function (req, job_id, headers) {
|
|
|
2787
2788
|
const conversations = await db_module.find_app_couch_query(account_profile_info.app_id, {
|
|
2788
2789
|
selector: {
|
|
2789
2790
|
docType: 'chat_conversation',
|
|
2791
|
+
contact_id,
|
|
2790
2792
|
stat: 3,
|
|
2793
|
+
|
|
2791
2794
|
process_stat: 'partial',
|
|
2792
2795
|
},
|
|
2793
2796
|
});
|
|
2794
2797
|
|
|
2795
2798
|
for await (let conversation of conversations.docs) {
|
|
2796
|
-
await ai_module.
|
|
2797
|
-
await ai_module.update_conversation_mood_level(uid, [{ uid: account_profile_info.uid, contact_id
|
|
2799
|
+
await ai_module.process_conversation(uid, conversation._id, account_profile_info, job_id, headers);
|
|
2800
|
+
await ai_module.update_conversation_mood_level(uid, [{ uid: account_profile_info.uid, contact_id }], conversation_doc._id, prompt, null, reference_id, conversation_doc.reference_type === 'contacts', account_profile_info);
|
|
2798
2801
|
// await process_email(email.email_account_id, profile, uid, email._id, job_id, headers, null, true);
|
|
2799
2802
|
}
|
|
2800
2803
|
|