@xuda.io/account_module 1.2.940 → 1.2.942
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 -0
- 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 {
|
|
@@ -1935,6 +1936,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1935
1936
|
source,
|
|
1936
1937
|
team_req_id,
|
|
1937
1938
|
metadata,
|
|
1939
|
+
is_spam,
|
|
1938
1940
|
};
|
|
1939
1941
|
const ret = await db_module.save_couch_doc('xuda_contacts', doc);
|
|
1940
1942
|
|