@xuda.io/account_module 1.2.303 → 1.2.305

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 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -121,7 +121,7 @@ export const update_account_info = async function (req, job_id, headers) {
121
121
  }
122
122
 
123
123
  if (account_obj.account_info?.profile_picture) {
124
- await removeBg({ url: account_obj.account_info?.profile_picture, uid }, job_id, headers);
124
+ // await removeBg({ url: account_obj.account_info?.profile_picture, uid }, job_id, headers);
125
125
  } else {
126
126
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
127
127
  // const profile_avatar_ret = ai_module.update_thumbnail('account', account_obj, account_obj.account_project_id, uid, job_id, headers, 'xuda_accounts');
@@ -1164,7 +1164,7 @@ export const get_contacts = async function (req) {
1164
1164
  const contacts_ret = await db_module.find_couch_query('xuda_contacts', opt);
1165
1165
  let requests_from_ret = { docs: [] };
1166
1166
  let requests_to_ret = { docs: [] };
1167
- const anonymous_image_url = 'https://dev.xuda.io/dist/images/graphics/anonymous.svg';
1167
+
1168
1168
  if (with_requests) {
1169
1169
  requests_from_ret = await db_module.find_couch_query('xuda_team', { selector: { docType: 'team_request', access_type: 'contact', team_req_stat: 2, team_req_from_uid: uid }, fields: ['team_req_date', 'team_req_to_email', 'team_req_from_uid'] });
1170
1170
  requests_to_ret = await db_module.find_couch_query('xuda_team', {
@@ -1183,7 +1183,7 @@ export const get_contacts = async function (req) {
1183
1183
  date_created: e.team_req_date,
1184
1184
  email: [e.sender_account_info.email],
1185
1185
  name: `${e.sender_account_info.first_name} ${e.sender_account_info.last_name}`,
1186
- profile_avatar: e.sender_account_info.profile_avatar || anonymous_image_url,
1186
+ profile_avatar: e.sender_account_info.profile_avatar || _conf.anonymous_image_url,
1187
1187
  pending: true,
1188
1188
  uid: e.team_req_from_uid,
1189
1189
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.303",
3
+ "version": "1.2.305",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {