@xuda.io/account_module 1.2.1478 → 1.2.1479

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 +7 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3033,7 +3033,12 @@ export const find_contact_query = async function (uid, opt) {
3033
3033
  };
3034
3034
 
3035
3035
  export const save_picture_cache = async function (uid, docType, url) {
3036
- const account_profile_info = await get_active_account_profile_info(uid);
3037
- const contact_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, contact_doc);
3036
+ let doc = {
3037
+ docType,
3038
+ uid,
3039
+ url,
3040
+ date_created_ts: Date.now(),
3041
+ };
3042
+ const contact_ret = await db_module.save_couch_doc('xuda_cache', doc);
3038
3043
  return contact_ret;
3039
3044
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1478",
3
+ "version": "1.2.1479",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {