@xuda.io/account_module 1.2.1654 → 1.2.1656

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2035,7 +2035,7 @@ export const add_contact = async function (req, job_id, headers) {
2035
2035
  limit: 1,
2036
2036
  fields: ['_id'],
2037
2037
  };
2038
- debugger;
2038
+
2039
2039
  const user_contacts = await find_contact_query(uid, opt);
2040
2040
  if (user_contacts.docs.length) {
2041
2041
  // throw new Error('contact already exist');
@@ -2076,7 +2076,7 @@ export const add_contact = async function (req, job_id, headers) {
2076
2076
  email,
2077
2077
  name: cached_contact?.name || name,
2078
2078
  stat: stat || 3,
2079
- date_created: new Date(metadata.email_data).getTime(),
2079
+ date_created: metadata.email_data ? new Date(metadata.email_data).getTime() : d,
2080
2080
  ts: d,
2081
2081
  docType: 'contact',
2082
2082
  contact_uid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1654",
3
+ "version": "1.2.1656",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {