@xuda.io/account_module 1.2.941 → 1.2.943

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 +7 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1909,6 +1909,7 @@ export const add_contact = async function (req, job_id, headers) {
1909
1909
  throw new Error(`account ${contact_uid} not found`);
1910
1910
  }
1911
1911
  } else {
1912
+ // contact without use account
1912
1913
  if (metadata.subject && !metadata.is_sent) {
1913
1914
  is_spam_ret = await ai_module.is_spam_email(uid, email, metadata.subject);
1914
1915
  try {
@@ -1918,6 +1919,12 @@ export const add_contact = async function (req, job_id, headers) {
1918
1919
  }
1919
1920
  } catch (error) {}
1920
1921
  }
1922
+
1923
+ const existing_contacts_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: email });
1924
+ for (const contact of existing_contacts_ret.data.rows) {
1925
+ if (contact.val) {
1926
+ }
1927
+ }
1921
1928
  }
1922
1929
  const d = Date.now();
1923
1930
  const doc = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.941",
3
+ "version": "1.2.943",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {