@xuda.io/account_module 1.2.2112 → 1.2.2114
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -950,7 +950,7 @@ export const search_users = async function (req) {
|
|
|
950
950
|
|
|
951
951
|
let docs = [];
|
|
952
952
|
for await (let e of ret.docs) {
|
|
953
|
-
let doc = await get_user_card(uid, e._id); //await get_contact_info(uid, e);
|
|
953
|
+
let doc = await get_user_card({ uid, uid_query: e._id }); //await get_contact_info(uid, e);
|
|
954
954
|
docs.push(doc);
|
|
955
955
|
}
|
|
956
956
|
|
|
@@ -1716,7 +1716,8 @@ export const get_user_name = async function (uid) {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
};
|
|
1718
1718
|
|
|
1719
|
-
export const get_user_card = async function (
|
|
1719
|
+
export const get_user_card = async function (req) {
|
|
1720
|
+
const { uid, uid_query } = req;
|
|
1720
1721
|
if (uid === uid_query) return await get_user_contact(uid, uid_query);
|
|
1721
1722
|
|
|
1722
1723
|
let user_contact_obj;
|