@xuda.io/account_module 1.2.1476 → 1.2.1478

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 -10
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2184,17 +2184,7 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
2184
2184
  profile_picture = contact_obj.profile_picture;
2185
2185
  }
2186
2186
 
2187
- // get business info
2188
-
2189
2187
  if (!contact_obj.profile_avatar) {
2190
- // const business_info = await get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
2191
- // const { business_size, business_category, business_sub_category, business_country, business_bio } = business_info;
2192
- // contact_obj.mainCategory = business_category;
2193
- // contact_obj.subCategory = business_sub_category;
2194
- // contact_obj.business_size = business_size;
2195
- // contact_obj.country = business_country;
2196
- // contact_obj.bio = business_bio;
2197
-
2198
2188
  const file_ret = await ai_module.get_profile_avatar(
2199
2189
  contact_obj.profile_picture,
2200
2190
  uid,
@@ -3041,3 +3031,9 @@ export const find_contact_query = async function (uid, opt) {
3041
3031
  const ret = await db_module.find_app_couch_query(app_id, opt);
3042
3032
  return ret;
3043
3033
  };
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;
3039
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1476",
3
+ "version": "1.2.1478",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {