@xuda.io/account_module 1.2.1908 → 1.2.1909
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 +8 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2777,8 +2777,14 @@ 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
|
+
await db_module.delete_app_couch_doc(app_id, email.conversation_id);
|
|
2782
|
+
email.conversation_id = null;
|
|
2783
|
+
}
|
|
2784
|
+
if (email.conversation_item_id) {
|
|
2785
|
+
await db_module.delete_app_couch_doc(app_id, email.conversation_item_id);
|
|
2786
|
+
email.conversation_item_id = null;
|
|
2787
|
+
}
|
|
2782
2788
|
|
|
2783
2789
|
// save attachments
|
|
2784
2790
|
// summarized_body
|