@xuda.io/account_module 1.2.29 → 1.2.30
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.js +14 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1439,3 +1439,17 @@ exports.invite_user = async function (req) {
|
|
|
1439
1439
|
|
|
1440
1440
|
// return { code: -1, data: "contact already exist active or deleted" };
|
|
1441
1441
|
};
|
|
1442
|
+
|
|
1443
|
+
exports.get_account_rt_info = async function (uid) {
|
|
1444
|
+
const doc_ret = await db_module.get_couch_doc("xuda_accounts", uid);
|
|
1445
|
+
if (doc_ret.code < 0) {
|
|
1446
|
+
console.error("get_account_rt_info", doc_ret);
|
|
1447
|
+
return {};
|
|
1448
|
+
}
|
|
1449
|
+
var account_info = doc_ret.data.account_info;
|
|
1450
|
+
|
|
1451
|
+
delete account_info.user_id;
|
|
1452
|
+
|
|
1453
|
+
account_info.uid = doc_ret.data._id;
|
|
1454
|
+
return account_info;
|
|
1455
|
+
};
|