@xuda.io/account_module 1.2.1105 → 1.2.1107

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -30,6 +30,7 @@ const account_info_properties = [
30
30
  'auto_respond_mode',
31
31
  'auto_respond_agents',
32
32
  'profile_avatar_stat',
33
+ 'active_account_profile_id',
33
34
  ];
34
35
 
35
36
  global._conf = (
@@ -1711,6 +1712,9 @@ export const get_contacts = async function (req) {
1711
1712
  export const archive_contact = async function (req) {
1712
1713
  const { contact_id } = req;
1713
1714
  try {
1715
+ const team_module = await import(`${module_path}/team_module/index.mjs`);
1716
+ await team_module.validate_share_exist(uid, 'contact', contact_id);
1717
+
1714
1718
  var contact_doc = await db_module.get_couch_doc_native('xuda_contacts', contact_id);
1715
1719
  contact_doc.stat = 5;
1716
1720
  contact_doc.stat_ts = Date.now();
@@ -2376,7 +2380,7 @@ export const onboarding_completed = async function (req, job_id, headers) {
2376
2380
  }
2377
2381
 
2378
2382
  const account_profile_ret = await create_account_profile({ uid, reserve: true });
2379
- account_doc.active_account_profile_id = account_profile_ret.data.id;
2383
+ account_doc.account_profile_id = account_profile_ret.data.id;
2380
2384
  account_doc.boarded_info = { headers, date_ts: Date.now() };
2381
2385
  account_doc.isBoarded = true;
2382
2386
  const save_ret = await db_module.save_couch_doc('xuda_accounts', account_doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1105",
3
+ "version": "1.2.1107",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {