@xuda.io/account_module 1.2.1802 → 1.2.1804
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 -0
- 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;
|
|
@@ -2046,6 +2047,7 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
|
|
|
2046
2047
|
account_obj = account_obj3;
|
|
2047
2048
|
account_info = account_obj.account_info;
|
|
2048
2049
|
|
|
2050
|
+
if (!_.isObject(file_ret.data)) throw new Error('file_ret not an object');
|
|
2049
2051
|
account_info.profile_avatar_obj = file_ret.data;
|
|
2050
2052
|
account_info.profile_avatar = account_info.profile_avatar_obj.file_url;
|
|
2051
2053
|
|