@xuda.io/account_module 1.2.333 → 1.2.335
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 +8 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1576,10 +1576,16 @@ export const update_contacts_with_account_changes = async function (uid, changes
|
|
|
1576
1576
|
if (changes.includes('profile_picture')) {
|
|
1577
1577
|
doc.profile_picture = account_obj.account_info.profile_picture;
|
|
1578
1578
|
}
|
|
1579
|
-
if (changes.includes('
|
|
1579
|
+
if (changes.includes('profile_avatar')) {
|
|
1580
1580
|
doc.profile_avatar = account_obj.account_info.profile_avatar;
|
|
1581
1581
|
}
|
|
1582
|
-
|
|
1582
|
+
if (changes.includes('email')) {
|
|
1583
|
+
doc.email = account_obj.account_info.email;
|
|
1584
|
+
}
|
|
1585
|
+
if (changes.includes('first_name') || changes.includes('last_name')) {
|
|
1586
|
+
doc.name = `${account_obj.account_info.first_name} ${account_obj.account_info.last_name}`;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1583
1589
|
console.log(doc);
|
|
1584
1590
|
}
|
|
1585
1591
|
|