@xuda.io/account_module 1.2.1412 → 1.2.1413
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2075,9 +2075,12 @@ const set_account_profile_picture = async function (uid, account_uid) {
|
|
|
2075
2075
|
if (account_code < 0) {
|
|
2076
2076
|
throw new Error(`account ${account_uid} not found`);
|
|
2077
2077
|
}
|
|
2078
|
+
|
|
2079
|
+
const name = account_info.account_type === 'business' ? account_info.business_name : account_info.full_name;
|
|
2080
|
+
|
|
2078
2081
|
await update_account_profile_picture_status(account_uid, 2);
|
|
2079
2082
|
if (!account_info.profile_picture) {
|
|
2080
|
-
const file_ret = await ai_module.get_profile_picture(uid, account_type, name, { email, context, metadata, account_info }, account_profile_info, job_id, headers);
|
|
2083
|
+
const file_ret = await ai_module.get_profile_picture(uid, account_info.account_type, name, { email, context, metadata, account_info }, account_profile_info, job_id, headers);
|
|
2081
2084
|
|
|
2082
2085
|
let { code: account_code, data: account_obj } = await db_module.get_couch_doc('xuda_accounts', account_uid);
|
|
2083
2086
|
let account_info = account_obj.account_info;
|
|
@@ -2125,7 +2128,6 @@ const set_account_profile_picture = async function (uid, account_uid) {
|
|
|
2125
2128
|
break;
|
|
2126
2129
|
}
|
|
2127
2130
|
|
|
2128
|
-
const name = account_info.account_type === 'business' ? account_info.business_name : account_info.full_name;
|
|
2129
2131
|
const { bio, country, mainCategory, subCategory } = account_info;
|
|
2130
2132
|
|
|
2131
2133
|
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);
|