@xuda.io/account_module 1.2.1633 → 1.2.1634
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2149,7 +2149,10 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2149
2149
|
}
|
|
2150
2150
|
await update_contact_profile_picture_status(uid, contact_id, 2);
|
|
2151
2151
|
if (!contact_obj.profile_picture) {
|
|
2152
|
-
|
|
2152
|
+
let cache = await get_xuda_cache(uid, 'profile_picture', contact_obj.email, 'file');
|
|
2153
|
+
if (!cache && contact_obj.business_name) {
|
|
2154
|
+
cache = await get_xuda_cache(uid, 'profile_picture', contact_obj.business_name, 'file');
|
|
2155
|
+
}
|
|
2153
2156
|
let file_ret = { code: 1, data: cache };
|
|
2154
2157
|
|
|
2155
2158
|
if (!cache) {
|