@xuda.io/account_module 1.2.939 → 1.2.941

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 +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1935,6 +1935,7 @@ export const add_contact = async function (req, job_id, headers) {
1935
1935
  source,
1936
1936
  team_req_id,
1937
1937
  metadata,
1938
+ is_spam,
1938
1939
  };
1939
1940
  const ret = await db_module.save_couch_doc('xuda_contacts', doc);
1940
1941
 
@@ -1946,7 +1947,9 @@ export const add_contact = async function (req, job_id, headers) {
1946
1947
  ai_module.convert_profile_image_to_avatar({ url: account_info_ret.data.profile_picture, uid, account_obj: { _id: contact_uid, account_info: account_info_ret.data } }, job_id, headers);
1947
1948
  } else {
1948
1949
  // create factual avatar
1949
- ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts', [email, doc._id, 'contact', app_id]);
1950
+ if (!is_spam) {
1951
+ ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts', [email, doc._id, 'contact', app_id]);
1952
+ }
1950
1953
  }
1951
1954
  }
1952
1955
  return ret;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.939",
3
+ "version": "1.2.941",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {