@xuda.io/account_module 1.2.890 → 1.2.892
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
|
@@ -1577,6 +1577,11 @@ export const get_contacts = async function (req) {
|
|
|
1577
1577
|
break;
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
|
+
case 'pinned': {
|
|
1581
|
+
opt.selector.pinned = true;
|
|
1582
|
+
break;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1580
1585
|
default:
|
|
1581
1586
|
with_requests = true;
|
|
1582
1587
|
break;
|
|
@@ -1782,7 +1787,7 @@ export const pin_contact = async function (req) {
|
|
|
1782
1787
|
return contact_ret;
|
|
1783
1788
|
}
|
|
1784
1789
|
var contact_doc = contact_ret.data;
|
|
1785
|
-
contact_doc.
|
|
1790
|
+
contact_doc.pinned = true;
|
|
1786
1791
|
|
|
1787
1792
|
const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
1788
1793
|
|
|
@@ -1803,7 +1808,7 @@ export const unpin_contact = async function (req) {
|
|
|
1803
1808
|
return contact_ret;
|
|
1804
1809
|
}
|
|
1805
1810
|
var contact_doc = contact_ret.data;
|
|
1806
|
-
contact_doc.
|
|
1811
|
+
contact_doc.pinned = false;
|
|
1807
1812
|
|
|
1808
1813
|
const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
1809
1814
|
|