@xuda.io/account_module 1.2.354 → 1.2.355
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1308,7 +1308,9 @@ export const update_contact = async function (req) {
|
|
|
1308
1308
|
|
|
1309
1309
|
if (contact_uid) {
|
|
1310
1310
|
const ret = await db_module.get_couch_doc('xuda_accounts', contact_uid);
|
|
1311
|
-
|
|
1311
|
+
const account_obj = ret.data;
|
|
1312
|
+
doc.profile_picture = account_obj.account_info.profile_picture;
|
|
1313
|
+
doc.profile_avatar = account_obj.account_info.profile_avatar;
|
|
1312
1314
|
}
|
|
1313
1315
|
|
|
1314
1316
|
return await db_module.save_couch_doc('xuda_contacts', doc);
|