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