@xuda.io/account_module 1.2.1803 → 1.2.1805
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1993,6 +1993,7 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
|
|
|
1993
1993
|
account_obj = account_obj2;
|
|
1994
1994
|
account_info = account_obj.account_info;
|
|
1995
1995
|
|
|
1996
|
+
if (!_.isObject(file_ret.data)) throw new Error('file_ret not an object');
|
|
1996
1997
|
account_info.profile_picture_obj = file_ret.data;
|
|
1997
1998
|
|
|
1998
1999
|
account_info.profile_picture = account_info.profile_picture_obj.file_url;
|
|
@@ -2045,7 +2046,7 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
|
|
|
2045
2046
|
let { code: account_code, data: account_obj3 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
|
|
2046
2047
|
account_obj = account_obj3;
|
|
2047
2048
|
account_info = account_obj.account_info;
|
|
2048
|
-
|
|
2049
|
+
debugger;
|
|
2049
2050
|
if (!_.isObject(file_ret.data)) throw new Error('file_ret not an object');
|
|
2050
2051
|
account_info.profile_avatar_obj = file_ret.data;
|
|
2051
2052
|
account_info.profile_avatar = account_info.profile_avatar_obj.file_url;
|