@xuda.io/account_module 1.2.1653 → 1.2.1655
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.
- package/index.mjs +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2035,6 +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
|
const user_contacts = await find_contact_query(uid, opt);
|
|
2039
2040
|
if (user_contacts.docs.length) {
|
|
2040
2041
|
// throw new Error('contact already exist');
|
|
@@ -2075,7 +2076,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2075
2076
|
email,
|
|
2076
2077
|
name: cached_contact?.name || name,
|
|
2077
2078
|
stat: stat || 3,
|
|
2078
|
-
date_created: new Date(metadata.email_data).getTime(),
|
|
2079
|
+
date_created: metadata.email_data ? new Date(metadata.email_data).getTime() : d,
|
|
2079
2080
|
ts: d,
|
|
2080
2081
|
docType: 'contact',
|
|
2081
2082
|
contact_uid,
|