@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.
Files changed (2) hide show
  1. package/index.mjs +17 -0
  2. 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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1874",
3
+ "version": "1.2.1875",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {