@xuda.io/account_module 1.2.1440 → 1.2.1442
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.
- package/index.mjs +4 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2137,7 +2137,8 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
|
|
|
2137
2137
|
|
|
2138
2138
|
const file_ret = await ai_module.get_profile_avatar(profile_picture, uid, '', account_profile_info, account_info.account_type, 'account', account_uid, { bio, country, mainCategory, subCategory }, business_size, name, account_info.email, job_id, headers);
|
|
2139
2139
|
|
|
2140
|
-
let { code: account_code, data:
|
|
2140
|
+
let { code: account_code, data: account_obj2 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
|
|
2141
|
+
contact_obj = contact_obj2;
|
|
2141
2142
|
let account_info = account_obj.account_info;
|
|
2142
2143
|
|
|
2143
2144
|
account_info.profile_avatar_obj = file_ret;
|
|
@@ -2168,8 +2169,8 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2168
2169
|
if (!contact_obj.profile_picture) {
|
|
2169
2170
|
const file_ret = await ai_module.get_profile_picture(uid, contact_obj.account_type, contact_obj.name, { email: contact_obj.email, metadata }, account_profile_info, job_id, headers);
|
|
2170
2171
|
|
|
2171
|
-
let { code: contact_code, data:
|
|
2172
|
-
|
|
2172
|
+
let { code: contact_code, data: contact_obj2 } = await db_module.get_app_couch_doc(account_profile_info.app_id, contact_id);
|
|
2173
|
+
contact_obj = contact_obj2;
|
|
2173
2174
|
contact_obj.profile_picture_obj = file_ret.data;
|
|
2174
2175
|
|
|
2175
2176
|
contact_obj.profile_picture = contact_obj.profile_picture_obj.file_url;
|