@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.
Files changed (2) hide show
  1. package/index.mjs +9 -2
  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) await db_module.delete_app_couch_doc(app_id, email.conversation_id);
2781
- if (email.conversation_item_id) await db_module.delete_app_couch_doc(app_id, email.conversation_item_id);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1908",
3
+ "version": "1.2.1910",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {