@xuda.io/account_module 1.2.1805 → 1.2.1806
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2038,7 +2038,7 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
|
|
|
2038
2038
|
}
|
|
2039
2039
|
|
|
2040
2040
|
const { bio, country, mainCategory, subCategory } = account_info;
|
|
2041
|
-
|
|
2041
|
+
debugger;
|
|
2042
2042
|
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);
|
|
2043
2043
|
if (file_ret.code < 0) {
|
|
2044
2044
|
throw new Error(file_ret.data);
|
|
@@ -2046,7 +2046,7 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
|
|
|
2046
2046
|
let { code: account_code, data: account_obj3 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
|
|
2047
2047
|
account_obj = account_obj3;
|
|
2048
2048
|
account_info = account_obj.account_info;
|
|
2049
|
-
|
|
2049
|
+
|
|
2050
2050
|
if (!_.isObject(file_ret.data)) throw new Error('file_ret not an object');
|
|
2051
2051
|
account_info.profile_avatar_obj = file_ret.data;
|
|
2052
2052
|
account_info.profile_avatar = account_info.profile_avatar_obj.file_url;
|