@xuda.io/account_module 1.2.1467 → 1.2.1469
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
|
@@ -2162,8 +2162,10 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
|
|
|
2162
2162
|
|
|
2163
2163
|
const { bio, country, mainCategory, subCategory } = account_info;
|
|
2164
2164
|
|
|
2165
|
-
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);
|
|
2166
|
-
|
|
2165
|
+
const file_ret = await ai_module.get_profile_avatar(account_info.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);
|
|
2166
|
+
if (file_ret.code < 0) {
|
|
2167
|
+
throw new Error(file_ret.data);
|
|
2168
|
+
}
|
|
2167
2169
|
let { code: account_code, data: account_obj3 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
|
|
2168
2170
|
account_obj = account_obj3;
|
|
2169
2171
|
account_info = account_obj.account_info;
|