@xuda.io/account_module 1.2.1815 → 1.2.1817

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2398,7 +2398,6 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
2398
2398
  contact_obj.profile_picture = null;
2399
2399
  contact_obj.profile_picture_obj = null;
2400
2400
  const contact_save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, contact_obj);
2401
- debugger;
2402
2401
  }
2403
2402
  throw new Error(file_ret.data);
2404
2403
  }
@@ -3282,6 +3281,12 @@ export const find_contact_query = async function (uid, opt) {
3282
3281
  return ret;
3283
3282
  };
3284
3283
 
3284
+ export const delete_xuda_cache = async function (uid, contact_obj) {
3285
+ const ret = await db_module.find_couch_query('xuda_cache', { selector: {} });
3286
+ const save_ret = await db_module.save_couch_doc('xuda_cache', doc);
3287
+ return save_ret;
3288
+ };
3289
+
3285
3290
  export const save_xuda_cache = async function (uid, docType, key, file, metadata = {}) {
3286
3291
  if (!key || typeof key !== 'string') return null;
3287
3292
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1815",
3
+ "version": "1.2.1817",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {