@xuda.io/account_module 1.2.1287 → 1.2.1289

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
@@ -2100,6 +2100,7 @@ export const add_contact = async function (req, job_id, headers) {
2100
2100
  try {
2101
2101
  const { uid, email, name, stat, contact_uid, context, source, team_req_id, metadata = {} } = req;
2102
2102
  const account_profile_info = await get_active_account_profile_info(uid);
2103
+ const { account_profile_obj } = account_profile_info;
2103
2104
 
2104
2105
  // const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_user_email_address', { key: [account_profile_info.uid, email] });
2105
2106
 
@@ -2172,7 +2173,7 @@ export const add_contact = async function (req, job_id, headers) {
2172
2173
  is_spam,
2173
2174
  profile_avatar,
2174
2175
  profile_avatar_obj,
2175
- account_profile_info,
2176
+ account_profiles: [account_profile_obj],
2176
2177
  };
2177
2178
  const ret = await save_contact(uid, doc);
2178
2179
 
@@ -2186,7 +2187,7 @@ export const add_contact = async function (req, job_id, headers) {
2186
2187
  if (!doc.profile_avatar) {
2187
2188
  // create factual avatar
2188
2189
  if (!is_spam) {
2189
- 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);
2190
+ ai_module.update_thumbnail('contact', doc, account_profile_info.app_id, uid, job_id, headers, null, [email, doc._id, 'contact', account_profile_info.app_id], account_profile_info);
2190
2191
  }
2191
2192
  }
2192
2193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1287",
3
+ "version": "1.2.1289",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {