@xuda.io/account_module 1.2.1133 → 1.2.1135

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 +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2573,7 +2573,8 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2573
2573
  const get_pattern = async function (doc) {
2574
2574
  let ret = `default-pattern.png`;
2575
2575
 
2576
- if (doc.account_type === 'business') {
2576
+ if (doc.team_req_id) {
2577
+ } else if (doc.account_type === 'business') {
2577
2578
  ret = doc.profile_picture;
2578
2579
  } else {
2579
2580
  switch (doc.avatar_source) {
@@ -2742,7 +2743,7 @@ export const archive_account_profile = async function (req) {
2742
2743
 
2743
2744
  return account_profile_save_ret;
2744
2745
  } else {
2745
- return await team_module.change_account_profile_dependencies_status(team_req_id, 5);
2746
+ return await team_module.change_account_profile_dependencies_status(account_profile_doc.team_req_id, 5);
2746
2747
  }
2747
2748
  } catch (err) {
2748
2749
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1133",
3
+ "version": "1.2.1135",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {