@xuda.io/account_module 1.2.501 → 1.2.503
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
|
@@ -1257,8 +1257,11 @@ const get_contact_border = function (doc) {
|
|
|
1257
1257
|
return ret;
|
|
1258
1258
|
};
|
|
1259
1259
|
|
|
1260
|
-
export const get_contact_info = async function (contact_doc) {
|
|
1260
|
+
export const get_contact_info = async function (contact_doc, _id) {
|
|
1261
1261
|
let doc = contact_doc;
|
|
1262
|
+
if (_id) {
|
|
1263
|
+
doc = await db_module.get_couch_doc_native('xuda_contacts', _id);
|
|
1264
|
+
}
|
|
1262
1265
|
|
|
1263
1266
|
if (doc.contact_uid) {
|
|
1264
1267
|
const account_info_ret = await get_account_name({ uid_query: doc.contact_uid });
|