@xuda.io/account_module 1.2.1138 → 1.2.1139
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 +3 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2574,11 +2574,9 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2574
2574
|
let ret = `default-pattern.png`;
|
|
2575
2575
|
|
|
2576
2576
|
if (doc.shared_from_uid) {
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
ret = shared_from_uid_ret.data.profile_avatar;
|
|
2581
|
-
} catch (error) {}
|
|
2577
|
+
// const account_profile_doc = await db_module.get_couch_doc_native('xuda_accounts', doc.share_item_id);
|
|
2578
|
+
const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
|
|
2579
|
+
ret = shared_from_uid_ret.data.profile_avatar;
|
|
2582
2580
|
} else if (doc.account_type === 'business') {
|
|
2583
2581
|
ret = doc.profile_picture;
|
|
2584
2582
|
} else {
|