@xuda.io/account_module 1.2.756 → 1.2.758
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 +6 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1247,7 +1247,12 @@ const get_contact_pattern = async function (doc) {
|
|
|
1247
1247
|
let ret = `default-pattern.png`;
|
|
1248
1248
|
|
|
1249
1249
|
if (doc.my_contact) {
|
|
1250
|
-
|
|
1250
|
+
if (doc.account_type === 'business') {
|
|
1251
|
+
const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
|
|
1252
|
+
ret = shared_from_uid_ret.data.profile_avatar;
|
|
1253
|
+
} else {
|
|
1254
|
+
ret = `my-pattern.png`;
|
|
1255
|
+
}
|
|
1251
1256
|
} else if (doc.shared_from_uid) {
|
|
1252
1257
|
const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
|
|
1253
1258
|
ret = shared_from_uid_ret.data.profile_avatar;
|