@xuda.io/account_module 1.2.1908 → 1.2.1910
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 +9 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2777,8 +2777,15 @@ export const not_spam_contact = async function (req, job_id, headers) {
|
|
|
2777
2777
|
debugger;
|
|
2778
2778
|
for await (let email of emails.docs) {
|
|
2779
2779
|
const app_id = await get_account_default_project_id(uid);
|
|
2780
|
-
if (email.conversation_id)
|
|
2781
|
-
|
|
2780
|
+
if (email.conversation_id) {
|
|
2781
|
+
db_module.delete_app_couch_doc(app_id, email.conversation_id);
|
|
2782
|
+
email.conversation_id = null;
|
|
2783
|
+
}
|
|
2784
|
+
if (email.conversation_item_id) {
|
|
2785
|
+
db_module.delete_app_couch_doc(app_id, email.conversation_item_id);
|
|
2786
|
+
email.conversation_item_id = null;
|
|
2787
|
+
}
|
|
2788
|
+
db_module.save_app_couch_doc(app_id, email);
|
|
2782
2789
|
|
|
2783
2790
|
// save attachments
|
|
2784
2791
|
// summarized_body
|