@xuda.io/account_module 1.2.1609 → 1.2.1611

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 +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1984,7 +1984,7 @@ export const add_contact = async function (req, job_id, headers) {
1984
1984
  email,
1985
1985
  name,
1986
1986
  stat: stat || 3,
1987
- date_created: d,
1987
+ date_created: Date.now(metadata.email_data),
1988
1988
  ts: d,
1989
1989
  docType: 'contact',
1990
1990
  contact_uid,
@@ -2023,6 +2023,7 @@ export const add_contact = async function (req, job_id, headers) {
2023
2023
  }
2024
2024
 
2025
2025
  const save_ret = await save_contact(uid, contact_obj);
2026
+ save_picture_cache(uid, 'contact', contact_obj.email, null, contact_obj);
2026
2027
  if (!is_spam) {
2027
2028
  set_contact_profile_picture(uid, contact_obj._id, metadata, job_id, headers);
2028
2029
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1609",
3
+ "version": "1.2.1611",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {