@xuda.io/account_module 1.2.1821 → 1.2.1823

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 +6 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3281,7 +3281,7 @@ export const find_contact_query = async function (uid, opt) {
3281
3281
  return ret;
3282
3282
  };
3283
3283
 
3284
- export const delete_xuda_cache = async function (uid, contact_obj) {
3284
+ export const delete_xuda_cache = async function (contact_obj) {
3285
3285
  const ret = await db_module.find_couch_query('xuda_cache', {
3286
3286
  selector: {
3287
3287
  $or: [
@@ -3294,8 +3294,11 @@ export const delete_xuda_cache = async function (uid, contact_obj) {
3294
3294
  ],
3295
3295
  },
3296
3296
  });
3297
- const save_ret = await db_module.save_couch_doc('xuda_cache', doc);
3298
- return save_ret;
3297
+
3298
+ for (let doc of ret.docs) {
3299
+ doc._deleted = true;
3300
+ const save_ret = await db_module.save_couch_doc('xuda_cache', doc);
3301
+ }
3299
3302
  };
3300
3303
 
3301
3304
  export const save_xuda_cache = async function (uid, docType, key, file, metadata = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1821",
3
+ "version": "1.2.1823",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {