@xuda.io/account_module 1.2.1873 → 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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2241,7 +2241,6 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2241
2241
|
const set_contact_profile_picture = async function (uid, contact_id, metadata, job_id, headers, account_profile_info, create_avatar) {
|
|
2242
2242
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
2243
2243
|
|
|
2244
|
-
debugger;
|
|
2245
2244
|
let contact_obj;
|
|
2246
2245
|
await update_contact_profile_picture_status(uid, contact_id, 1);
|
|
2247
2246
|
try {
|
|
@@ -2699,6 +2698,23 @@ export const pin_contact = async function (req) {
|
|
|
2699
2698
|
}
|
|
2700
2699
|
};
|
|
2701
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
|
+
|
|
2702
2718
|
export const unpin_contact = async function (req) {
|
|
2703
2719
|
const { contact_id, uid } = req;
|
|
2704
2720
|
try {
|