@xuda.io/account_module 1.2.1874 → 1.2.1875
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 +17 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2698,6 +2698,23 @@ export const pin_contact = async function (req) {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
};
|
|
2700
2700
|
|
|
2701
|
+
export const set_contact_deep_research = async function (req) {
|
|
2702
|
+
const { uid, contact_id } = req;
|
|
2703
|
+
try {
|
|
2704
|
+
var contact_doc = await get_contact(uid, contact_id);
|
|
2705
|
+
contact_doc.deep_research = true;
|
|
2706
|
+
|
|
2707
|
+
const contact_save_ret = await save_contact(uid, contact_doc);
|
|
2708
|
+
|
|
2709
|
+
return contact_save_ret;
|
|
2710
|
+
} catch (err) {
|
|
2711
|
+
return {
|
|
2712
|
+
code: -24,
|
|
2713
|
+
data: err.message,
|
|
2714
|
+
};
|
|
2715
|
+
}
|
|
2716
|
+
};
|
|
2717
|
+
|
|
2701
2718
|
export const unpin_contact = async function (req) {
|
|
2702
2719
|
const { contact_id, uid } = req;
|
|
2703
2720
|
try {
|