@xuda.io/account_module 1.2.1833 → 1.2.1835
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 +4 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2785,13 +2785,16 @@ export const unpin_contact = async function (req) {
|
|
|
2785
2785
|
}
|
|
2786
2786
|
};
|
|
2787
2787
|
|
|
2788
|
-
export const not_spam_contact = async function (req) {
|
|
2788
|
+
export const not_spam_contact = async function (req, job_id, headers) {
|
|
2789
2789
|
const { contact_id, uid } = req;
|
|
2790
|
+
const account_profile_info = await get_active_account_profile_info(uid);
|
|
2790
2791
|
try {
|
|
2791
2792
|
var contact_doc = await get_contact(uid, contact_id);
|
|
2792
2793
|
contact_doc.is_spam = false;
|
|
2793
2794
|
|
|
2794
2795
|
const contact_save_ret = await save_contact(uid, contact_doc);
|
|
2796
|
+
await delete_xuda_cache(contact_doc);
|
|
2797
|
+
set_contact_profile_picture(uid, contact_doc._id, {}, job_id, headers, account_profile_info);
|
|
2795
2798
|
|
|
2796
2799
|
return contact_save_ret;
|
|
2797
2800
|
} catch (err) {
|