@xuda.io/account_module 1.2.1760 → 1.2.1762
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 +7 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1140,6 +1140,13 @@ const get_contact_background = function (doc) {
|
|
|
1140
1140
|
const get_contact_pattern = async function (doc) {
|
|
1141
1141
|
let ret = `default-pattern.png`;
|
|
1142
1142
|
debugger;
|
|
1143
|
+
|
|
1144
|
+
if (doc?.shared_from_uid) {
|
|
1145
|
+
const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
|
|
1146
|
+
ret = shared_from_uid_ret.data.profile_avatar;
|
|
1147
|
+
} else {
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1143
1150
|
if (doc.account_type === 'business') {
|
|
1144
1151
|
if (doc?.is_real_person) {
|
|
1145
1152
|
ret = doc.profile_picture;
|