@xuda.io/account_module 1.2.1365 → 1.2.1367
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 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1851,7 +1851,7 @@ export const onboarding_completed = async function (req, job_id, headers) {
|
|
|
1851
1851
|
// reduce: '_sum',
|
|
1852
1852
|
// };
|
|
1853
1853
|
// }
|
|
1854
|
-
await db_module.save_app_couch_doc_native(account_doc.account_project_id, _design);
|
|
1854
|
+
// await db_module.save_app_couch_doc_native(account_doc.account_project_id, _design);
|
|
1855
1855
|
///////
|
|
1856
1856
|
|
|
1857
1857
|
return save_ret;
|
|
@@ -1987,13 +1987,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1987
1987
|
} else {
|
|
1988
1988
|
// contact without use account
|
|
1989
1989
|
if (metadata.subject && !metadata.is_sent) {
|
|
1990
|
-
|
|
1991
|
-
try {
|
|
1992
|
-
if (is_spam_ret.code > -1) {
|
|
1993
|
-
const data = JSON.parse(is_spam_ret.data);
|
|
1994
|
-
is_spam = data.is_spam;
|
|
1995
|
-
}
|
|
1996
|
-
} catch (error) {}
|
|
1990
|
+
is_spam = await ai_module.is_spam_email(uid, email, metadata.subject, account_profile_info);
|
|
1997
1991
|
}
|
|
1998
1992
|
|
|
1999
1993
|
// const existing_contacts_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: email });
|