@xuda.io/account_module 1.2.891 → 1.2.893
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 +7 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1582,6 +1582,11 @@ export const get_contacts = async function (req) {
|
|
|
1582
1582
|
break;
|
|
1583
1583
|
}
|
|
1584
1584
|
|
|
1585
|
+
case 'online': {
|
|
1586
|
+
opt.limit = 9999;
|
|
1587
|
+
break;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1585
1590
|
default:
|
|
1586
1591
|
with_requests = true;
|
|
1587
1592
|
break;
|
|
@@ -1787,7 +1792,7 @@ export const pin_contact = async function (req) {
|
|
|
1787
1792
|
return contact_ret;
|
|
1788
1793
|
}
|
|
1789
1794
|
var contact_doc = contact_ret.data;
|
|
1790
|
-
contact_doc.
|
|
1795
|
+
contact_doc.pinned = true;
|
|
1791
1796
|
|
|
1792
1797
|
const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
1793
1798
|
|
|
@@ -1808,7 +1813,7 @@ export const unpin_contact = async function (req) {
|
|
|
1808
1813
|
return contact_ret;
|
|
1809
1814
|
}
|
|
1810
1815
|
var contact_doc = contact_ret.data;
|
|
1811
|
-
contact_doc.
|
|
1816
|
+
contact_doc.pinned = false;
|
|
1812
1817
|
|
|
1813
1818
|
const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
1814
1819
|
|