@xuda.io/account_module 1.2.1770 → 1.2.1772

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 +1 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2222,7 +2222,6 @@ export const add_contact = async function (req, job_id, headers) {
2222
2222
  const save_ret = await save_contact(uid, contact_obj);
2223
2223
  save_xuda_cache(uid, 'contact', contact_obj.email, null, contact_obj);
2224
2224
 
2225
- debugger;
2226
2225
  if (!contact_obj.is_spam && contact_obj.name) {
2227
2226
  set_contact_profile_picture(uid, contact_obj._id, metadata, job_id, headers, account_profile_info);
2228
2227
  }
@@ -2510,7 +2509,7 @@ export const get_contacts = async function (req, job_id, headers) {
2510
2509
  contact_docs.docs.push(doc);
2511
2510
 
2512
2511
  if (contact_id) {
2513
- if (!doc.profile_avatar && (!doc.profile_avatar_stat || doc.profile_avatar_stat === 1 || (doc.profile_avatar_stat === 2 && (!doc.profile_avatar_stat_ts || Date.now() - doc.profile_avatar_stat_ts > 1000 * 60 * 5)))) {
2512
+ if (!doc.profile_avatar && !doc.is_spam && (!doc.profile_avatar_stat || doc.profile_avatar_stat === 1 || (doc.profile_avatar_stat === 2 && (!doc.profile_avatar_stat_ts || Date.now() - doc.profile_avatar_stat_ts > 1000 * 60 * 5)))) {
2514
2513
  set_contact_profile_picture(uid, doc._id, {}, job_id, headers, account_profile_info);
2515
2514
  }
2516
2515
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1770",
3
+ "version": "1.2.1772",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {