@xuda.io/account_module 1.2.1722 → 1.2.1724

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
@@ -2099,10 +2099,10 @@ export const add_contact = async function (req, job_id, headers) {
2099
2099
  // const domain = email.includes('@') ? email.split('@')[1] : '';
2100
2100
  // cached_contact = await get_xuda_cache(uid, 'contact', domain, 'metadata');
2101
2101
  // }
2102
- debugger;
2102
+
2103
2103
  if (_.isEmpty(cached_contact)) {
2104
2104
  if (metadata.subject && !metadata.is_sent) {
2105
- email_type_info = await ai_module.detect_email_type(uid, name, email, account_profile_info, metadata?.summarized_body, metadata?.subject);
2105
+ email_type_info = await ai_module.detect_email_type(uid, name, email, account_profile_info, '', metadata?.subject);
2106
2106
  is_spam = email_type_info.email_type === 'spam' || email_type_info.email_type === 'promotional';
2107
2107
  // is_spam = await ai_module.is_spam_email(uid, email, metadata.subject, account_profile_info);
2108
2108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1722",
3
+ "version": "1.2.1724",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {