@xuda.io/account_module 1.2.1624 → 1.2.1626
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 +7 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2025,12 +2025,14 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
}
|
|
2027
2027
|
} else {
|
|
2028
|
+
// get from cache
|
|
2028
2029
|
contact_obj.mainCategory = cached_contact.mainCategory;
|
|
2029
|
-
contact_obj.subCategory =
|
|
2030
|
-
contact_obj.business_size = business_size;
|
|
2031
|
-
contact_obj.country =
|
|
2032
|
-
contact_obj.bio =
|
|
2033
|
-
contact_obj.business_name = business_name;
|
|
2030
|
+
contact_obj.subCategory = cached_contact.subCategory;
|
|
2031
|
+
contact_obj.business_size = cached_contact.business_size;
|
|
2032
|
+
contact_obj.country = cached_contact.country;
|
|
2033
|
+
contact_obj.bio = cached_contact.bio;
|
|
2034
|
+
contact_obj.business_name = cached_contact.business_name;
|
|
2035
|
+
contact_obj.is_spam = cached_contact.is_spam;
|
|
2034
2036
|
}
|
|
2035
2037
|
const save_ret = await save_contact(uid, contact_obj);
|
|
2036
2038
|
save_xuda_cache(uid, 'contact', contact_obj.email, null, contact_obj);
|