@xuda.io/account_module 1.2.1478 → 1.2.1480

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 +10 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3032,8 +3032,14 @@ export const find_contact_query = async function (uid, opt) {
3032
3032
  return ret;
3033
3033
  };
3034
3034
 
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);
3038
- return contact_ret;
3035
+ export const save_picture_cache = async function (uid, docType, name, url) {
3036
+ let doc = {
3037
+ name,
3038
+ docType,
3039
+ uid,
3040
+ url,
3041
+ date_created_ts: Date.now(),
3042
+ };
3043
+ const save_ret = await db_module.save_couch_doc('xuda_cache', doc);
3044
+ return save_ret;
3039
3045
  };
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.1480",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {