@xuda.io/account_module 1.2.326 → 1.2.327
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 +3 -9
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1561,15 +1561,9 @@ export const get_user_name = async function (uid) {
|
|
|
1561
1561
|
|
|
1562
1562
|
export const update_contacts_with_account_changes = async function (uid, changes = []) {
|
|
1563
1563
|
try {
|
|
1564
|
-
const
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
username = account_info.first_name + ' ' + account_info.last_name;
|
|
1568
|
-
|
|
1569
|
-
if (!username) {
|
|
1570
|
-
username = +account_info.email;
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1564
|
+
const ret = await db_module.get_couch_doc('xuda_accounts', uid);
|
|
1565
|
+
var account_obj = ret.data;
|
|
1566
|
+
account_obj.ts = Date.now();
|
|
1573
1567
|
|
|
1574
1568
|
// update all uid contacts with the new avatar
|
|
1575
1569
|
const opt = {
|