@xuda.io/account_module 1.2.894 → 1.2.896

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.
Files changed (2) hide show
  1. package/index.mjs +2 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1420,6 +1420,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
1420
1420
  doc.zip = account_info_ret.data.zip;
1421
1421
  doc.account_type = account_info_ret.data.account_type;
1422
1422
  doc.email = doc.email?.[0];
1423
+ doc.online = account_info_ret.data.online;
1423
1424
  } else {
1424
1425
  doc.email = doc.email?.[0];
1425
1426
  doc.emails = doc.email;
@@ -1659,6 +1660,7 @@ export const get_contacts = async function (req) {
1659
1660
  doc = await get_contact_info(uid, doc);
1660
1661
 
1661
1662
  if (filter_type === 'online') {
1663
+ if (!doc.online) continue;
1662
1664
  }
1663
1665
 
1664
1666
  contact_docs.docs.push(doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.894",
3
+ "version": "1.2.896",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {