@xuda.io/account_module 1.2.947 → 1.2.949
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 +5 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1902,6 +1902,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
|
|
1904
1904
|
let is_spam = false;
|
|
1905
|
+
let profile_avatar, profile_avatar_obj;
|
|
1905
1906
|
let account_info_ret;
|
|
1906
1907
|
if (contact_uid) {
|
|
1907
1908
|
account_info_ret = await get_account_name({ uid_query: contact_uid });
|
|
@@ -1923,8 +1924,8 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1923
1924
|
const existing_contacts_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: email });
|
|
1924
1925
|
for (const contact of existing_contacts_ret.rows) {
|
|
1925
1926
|
if (contact.value.profile_avatar) {
|
|
1926
|
-
|
|
1927
|
-
|
|
1927
|
+
profile_avatar = contact.value.profile_avatar;
|
|
1928
|
+
profile_avatar_obj == contact.value.profile_avatar_obj;
|
|
1928
1929
|
}
|
|
1929
1930
|
}
|
|
1930
1931
|
}
|
|
@@ -1945,6 +1946,8 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1945
1946
|
team_req_id,
|
|
1946
1947
|
metadata,
|
|
1947
1948
|
is_spam,
|
|
1949
|
+
profile_avatar,
|
|
1950
|
+
profile_avatar_obj,
|
|
1948
1951
|
};
|
|
1949
1952
|
const ret = await db_module.save_couch_doc('xuda_contacts', doc);
|
|
1950
1953
|
|