@xuda.io/account_module 1.2.1192 → 1.2.1194

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 +10 -10
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1992,7 +1992,7 @@ export const add_contact = async function (req, job_id, headers) {
1992
1992
  if (!doc.profile_avatar) {
1993
1993
  // create factual avatar
1994
1994
  if (!is_spam) {
1995
- ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts', [email, doc._id, 'contact', app_id]);
1995
+ ai_module.update_thumbnail('contact', doc, account_profile_info.app_id, uid, job_id, headers, 'xuda_contacts', [email, doc._id, 'contact', account_profile_info.app_id], account_profile_info);
1996
1996
  }
1997
1997
  }
1998
1998
  }
@@ -2804,17 +2804,17 @@ export const archive_account_profile = async function (req) {
2804
2804
  if (account_profile_doc.reserve) {
2805
2805
  throw new Error('reserve');
2806
2806
  }
2807
- if (!account_profile_doc.team_req_id) {
2808
- account_profile_doc.stat = 5;
2809
- account_profile_doc.stat_ts = Date.now();
2810
- account_profile_doc.stat_reason = 'archived by the user';
2807
+ // if (!account_profile_doc.team_req_id) {
2808
+ account_profile_doc.stat = 5;
2809
+ account_profile_doc.stat_ts = Date.now();
2810
+ account_profile_doc.stat_reason = 'archived by the user';
2811
2811
 
2812
- const account_profile_save_ret = await db_module.save_couch_doc('xuda_accounts', account_profile_doc);
2812
+ const account_profile_save_ret = await db_module.save_couch_doc('xuda_accounts', account_profile_doc);
2813
2813
 
2814
- return account_profile_save_ret;
2815
- } else {
2816
- return await team_module.change_account_profile_dependencies_status(account_profile_doc.team_req_id, 5);
2817
- }
2814
+ return account_profile_save_ret;
2815
+ // } else {
2816
+ // return await team_module.change_account_profile_dependencies_status(account_profile_doc.team_req_id, 5);
2817
+ // }
2818
2818
  } catch (err) {
2819
2819
  return {
2820
2820
  code: -22,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1192",
3
+ "version": "1.2.1194",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {