@xuda.io/account_module 1.2.1945 → 1.2.1947
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 +2 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2070,7 +2070,7 @@ setTimeout(async () => {
|
|
|
2070
2070
|
let ret;
|
|
2071
2071
|
|
|
2072
2072
|
// ret = await generate_contact_avatar({ uid, contact_id: 'cnt_c07049718613a11d164e90450d5f2742' });
|
|
2073
|
-
ret = await not_spam_contact({ uid, contact_id: 'cnt_c07049718613a11d164e90450d5f2742' });
|
|
2073
|
+
// ret = await not_spam_contact({ uid, contact_id: 'cnt_c07049718613a11d164e90450d5f2742' });
|
|
2074
2074
|
// ret = await get_account_ai_usage({ uid });
|
|
2075
2075
|
// ret = await create_account_profile({ uid });
|
|
2076
2076
|
// ret = await get_account_profiles({ uid });
|
|
@@ -2759,7 +2759,6 @@ export const not_spam_contact = async function (req, job_id, headers) {
|
|
|
2759
2759
|
const { contact_id, uid } = req;
|
|
2760
2760
|
const account_profile_info = await get_active_account_profile_info(uid);
|
|
2761
2761
|
try {
|
|
2762
|
-
debugger;
|
|
2763
2762
|
var contact_doc = await get_contact(uid, contact_id);
|
|
2764
2763
|
contact_doc.is_spam = false;
|
|
2765
2764
|
|
|
@@ -2767,7 +2766,7 @@ export const not_spam_contact = async function (req, job_id, headers) {
|
|
|
2767
2766
|
contact_doc.account_type = is_business ? 'business' : 'personal';
|
|
2768
2767
|
if (is_business) {
|
|
2769
2768
|
contact_doc.business_info = await ai_module.get_business_info(uid, '', contact_doc.email, account_profile_info, { light: true });
|
|
2770
|
-
if (business_info.business_name !== 'Not available') {
|
|
2769
|
+
if (contact_doc.business_info.business_name !== 'Not available') {
|
|
2771
2770
|
contact_doc.business_has_person = await ai_module.is_business_contact_has_person(uid, contact_doc.email, contact_doc.name, contact_doc?.metadata?.subject, contact_doc?.metadata?.summarized_body, account_profile_info);
|
|
2772
2771
|
} else {
|
|
2773
2772
|
contact_doc.account_type = 'personal';
|