@xuda.io/account_module 1.2.1952 → 1.2.1954

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 +16 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2859,9 +2859,6 @@ export const not_spam_contact = async function (req, job_id, headers) {
2859
2859
  };
2860
2860
 
2861
2861
  export const generate_contact_avatar = async function (req, job_id, headers) {
2862
- // const email_module = await import(`${module_path}/email_module/index.mjs`);
2863
- // const ai_module = await import(`${module_path}/ai_module/index.mjs`);
2864
-
2865
2862
  const { contact_id, uid } = req;
2866
2863
  const account_profile_info = await get_active_account_profile_info(uid);
2867
2864
  try {
@@ -2913,9 +2910,23 @@ export const set_deep_research_contact = async function (req, job_id, headers) {
2913
2910
 
2914
2911
  const contact_save_ret = await save_contact(uid, contact_doc);
2915
2912
  await delete_xuda_cache(contact_doc);
2916
- // set_contact_profile_picture(uid, contact_doc._id, {}, job_id, headers, account_profile_info, false);
2917
2913
 
2918
- // find contact emails , set status to 1
2914
+
2915
+ const conversation_items = await db_module.find_app_couch_query(account_profile_info.app_id, {
2916
+ selector: {
2917
+ docType: 'chat_conversation_item',
2918
+ reference_id: contact_id,
2919
+ stat: 3,
2920
+ process_stat: 'partial',
2921
+ },
2922
+ });
2923
+ for await (let conversation_item of conversation_items.docs) {
2924
+ }
2925
+ }
2926
+
2927
+
2928
+ // set_contact_profile_picture(uid, contact_doc._id, {}, job_id, headers, account_profile_info, false);
2929
+
2919
2930
 
2920
2931
  // const emails = await db_module.find_app_couch_query(account_profile_info.app_id, {
2921
2932
  // selector: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1952",
3
+ "version": "1.2.1954",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {