@xuda.io/account_module 1.2.1900 → 1.2.1902

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 +5 -2
  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
+ reference_id: 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.process_conversation(uid, conversation_doc._id, account_profile_info, job_id, headers);
2797
- await ai_module.update_conversation_mood_level(uid, [{ uid: account_profile_info.uid, contact_id: reference_id }], conversation_doc._id, prompt, null, reference_id, conversation_doc.reference_type === 'contacts', account_profile_info);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1900",
3
+ "version": "1.2.1902",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {