@xuda.io/account_module 1.2.942 → 1.2.944
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 +6 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1919,6 +1919,12 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
} catch (error) {}
|
|
1921
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.rows) {
|
|
1925
|
+
if (contact.val) {
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1922
1928
|
}
|
|
1923
1929
|
const d = Date.now();
|
|
1924
1930
|
const doc = {
|