@xuda.io/account_module 1.2.2078 → 1.2.2079

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 +9 -7
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -55,7 +55,9 @@ const logs_ms = await import(`${module_path}/logs_module/index_ms.mjs`);
55
55
 
56
56
  const ws_dashboard_msa = await import(`${module_path}/ws_dashboard_module/index_msa.mjs`);
57
57
  const drive_msa = await import(`${module_path}/drive_module/index_msa.mjs`);
58
-
58
+ const email_msa = await import(`${module_path}/email_module/index_msa.mjs`);
59
+ const logs_msa = await import(`${module_path}/logs_module/index_msa.mjs`);
60
+ const ai_msa = await import(`${module_path}/ai_module/index_msa.mjs`);
59
61
  // const {get_active_account_profile_info} = await import(`${module_path}/ws_dashboard_module/get_active_account_profile_info.mjs`);
60
62
 
61
63
  export const update_account_info = async function (req, job_id, headers) {
@@ -111,7 +113,7 @@ export const update_account_info = async function (req, job_id, headers) {
111
113
 
112
114
  const profile_avatar_obj = account_obj?.account_info?.profile_avatar_obj || '';
113
115
  if (profile_avatar_obj) {
114
- drive_ms.delete_drive_files({ uid, drive_type: 'user', files_arr: [{ type: 'file', file_path: path.join(profile_avatar_obj.file_path, profile_avatar_obj.filename) }] });
116
+ drive_msa.delete_drive_files({ uid, drive_type: 'user', files_arr: [{ type: 'file', file_path: path.join(profile_avatar_obj.file_path, profile_avatar_obj.filename) }] });
115
117
  }
116
118
  }
117
119
 
@@ -793,7 +795,7 @@ export const add_account_log_util = async function (body, status, service, sourc
793
795
  if (service.substr(0, 4) === 'get_' && !body.api_pk && !body.api_sk) return;
794
796
  }
795
797
 
796
- logs_ms.add_account_log(get_account_log_object(body, status, service, source, response_data, ip, headers, security));
798
+ logs_msa.add_account_log(get_account_log_object(body, status, service, source, response_data, ip, headers, security));
797
799
  };
798
800
 
799
801
  export const save_ssh_key = async function (req) {
@@ -2490,7 +2492,7 @@ export const delete_contact = async function (req, job_id, headers) {
2490
2492
 
2491
2493
  const contact_save_ret = await save_contact(uid, contact_doc);
2492
2494
 
2493
- ai_ms.delete_depended_chats(uid, contact_id);
2495
+ ai_msa.delete_depended_chats(uid, contact_id);
2494
2496
  return contact_save_ret;
2495
2497
  } catch (err) {
2496
2498
  return {
@@ -3136,7 +3138,7 @@ export const delete_account_profile = async function (req, job_id, headers) {
3136
3138
 
3137
3139
  const account_profile_save_ret = await db_module.save_app_couch_doc(app_id, account_profile_doc);
3138
3140
 
3139
- ai_ms.delete_depended_chats(uid, profile_id);
3141
+ ai_msa.delete_depended_chats(uid, profile_id);
3140
3142
  return account_profile_save_ret;
3141
3143
  } catch (err) {
3142
3144
  return {
@@ -3477,7 +3479,7 @@ export const read_accounts_emails = async function () {
3477
3479
  const active_accounts = await db_module.find_couch_query('xuda_accounts', { selector: { stat: 3, docType: 'account' }, limit: 99999 });
3478
3480
  for await (let account_doc of active_accounts.docs) {
3479
3481
  if (!account_doc?.account_info?.active_account_profile_id) continue;
3480
- email_ms.refresh_mailboxes({ uid: account_doc._id });
3482
+ email_msa.refresh_mailboxes({ uid: account_doc._id });
3481
3483
  }
3482
3484
  };
3483
3485
 
@@ -3485,7 +3487,7 @@ export const process_accounts_emails = async function () {
3485
3487
  const active_accounts = await db_module.find_couch_query('xuda_accounts', { selector: { stat: 3, docType: 'account' }, limit: 99999 });
3486
3488
  for await (let account_doc of active_accounts.docs) {
3487
3489
  if (!account_doc?.account_info?.active_account_profile_id) continue;
3488
- email_ms.process_emails({ uid: account_doc._id });
3490
+ email_msa.process_emails({ uid: account_doc._id });
3489
3491
  }
3490
3492
  };
3491
3493
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2078",
3
+ "version": "1.2.2079",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {