@xuda.io/account_module 1.2.1453 → 1.2.1455
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 +7 -6
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2099,7 +2099,8 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
|
|
|
2099
2099
|
if (!account_info.profile_picture) {
|
|
2100
2100
|
const file_ret = await ai_module.get_profile_picture(uid, account_info.account_type, name, { email: account_info.email, metadata, account_info }, account_profile_info, job_id, headers);
|
|
2101
2101
|
|
|
2102
|
-
let { code: account_code, data:
|
|
2102
|
+
let { code: account_code, data: account_obj2 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
|
|
2103
|
+
account_obj = account_obj2;
|
|
2103
2104
|
let account_info = account_obj.account_info;
|
|
2104
2105
|
|
|
2105
2106
|
account_info.profile_picture_obj = file_ret.data;
|
|
@@ -2149,8 +2150,8 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
|
|
|
2149
2150
|
|
|
2150
2151
|
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);
|
|
2151
2152
|
|
|
2152
|
-
let { code: account_code, data:
|
|
2153
|
-
|
|
2153
|
+
let { code: account_code, data: account_obj3 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
|
|
2154
|
+
account_obj = account_obj3;
|
|
2154
2155
|
let account_info = account_obj.account_info;
|
|
2155
2156
|
|
|
2156
2157
|
account_info.profile_avatar_obj = file_ret;
|
|
@@ -2211,15 +2212,15 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2211
2212
|
'contact',
|
|
2212
2213
|
contact_id,
|
|
2213
2214
|
{ bio: contact_obj.bio, country: contact_obj.country, mainCategory: contact_obj.mainCategory, subCategory: contact_obj.subCategory },
|
|
2214
|
-
business_size,
|
|
2215
|
+
contact_obj.business_size,
|
|
2215
2216
|
contact_obj.name,
|
|
2216
2217
|
contact_obj.email,
|
|
2217
2218
|
job_id,
|
|
2218
2219
|
headers,
|
|
2219
2220
|
);
|
|
2220
2221
|
|
|
2221
|
-
let { code: contact_code, data:
|
|
2222
|
-
|
|
2222
|
+
let { code: contact_code, data: contact_obj3 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
|
|
2223
|
+
contact_obj = contact_obj3;
|
|
2223
2224
|
contact_obj.profile_avatar_obj = file_ret;
|
|
2224
2225
|
contact_obj.profile_avatar = contact_obj.profile_avatar_obj.file_url;
|
|
2225
2226
|
|