@xuda.io/account_module 1.2.947 → 1.2.948

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
@@ -1902,6 +1902,7 @@ export const add_contact = async function (req, job_id, headers) {
1902
1902
  }
1903
1903
 
1904
1904
  let is_spam = false;
1905
+ let profile_avatar, profile_avatar_obj;
1905
1906
  let account_info_ret;
1906
1907
  if (contact_uid) {
1907
1908
  account_info_ret = await get_account_name({ uid_query: contact_uid });
@@ -1923,8 +1924,8 @@ export const add_contact = async function (req, job_id, headers) {
1923
1924
  const existing_contacts_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: email });
1924
1925
  for (const contact of existing_contacts_ret.rows) {
1925
1926
  if (contact.value.profile_avatar) {
1926
- db_doc.profile_avatar = images_arr[0].file_url;
1927
- db_doc.profile_avatar_obj == images_arr[0];
1927
+ profile_avatar = contact.value.profile_avatar;
1928
+ profile_avatar_obj == contact.value.profile_avatar_obj;
1928
1929
  }
1929
1930
  }
1930
1931
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.947",
3
+ "version": "1.2.948",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {