@xuda.io/account_module 1.2.938 → 1.2.940
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
|
@@ -1914,6 +1914,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1914
1914
|
try {
|
|
1915
1915
|
if (is_spam_ret.code > -1) {
|
|
1916
1916
|
const data = JSON.parse(is_spam_ret.data);
|
|
1917
|
+
is_spam = data.is_spam;
|
|
1917
1918
|
}
|
|
1918
1919
|
} catch (error) {}
|
|
1919
1920
|
}
|
|
@@ -1945,7 +1946,9 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1945
1946
|
ai_module.convert_profile_image_to_avatar({ url: account_info_ret.data.profile_picture, uid, account_obj: { _id: contact_uid, account_info: account_info_ret.data } }, job_id, headers);
|
|
1946
1947
|
} else {
|
|
1947
1948
|
// create factual avatar
|
|
1948
|
-
|
|
1949
|
+
if (!is_spam) {
|
|
1950
|
+
ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts', [email, doc._id, 'contact', app_id]);
|
|
1951
|
+
}
|
|
1949
1952
|
}
|
|
1950
1953
|
}
|
|
1951
1954
|
return ret;
|