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