@xuda.io/account_module 1.2.1838 → 1.2.1839
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 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2153,6 +2153,10 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2153
2153
|
|
|
2154
2154
|
set_account_profile_picture(uid, contact_uid, metadata, job_id, headers, account_profile_info);
|
|
2155
2155
|
} else {
|
|
2156
|
+
if (email.contains('unsubscribe')) {
|
|
2157
|
+
is_spam = true;
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2156
2160
|
// contact without use account
|
|
2157
2161
|
cached_contact = await get_xuda_cache(uid, 'contact', email, 'metadata');
|
|
2158
2162
|
// if (_.isEmpty(cached_contact) && account_type === 'business') {
|