@xuda.io/account_module 1.2.353 → 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.
Files changed (2) hide show
  1. package/index.mjs +8 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1305,6 +1305,14 @@ export const update_contact = async function (req) {
1305
1305
  if (req_id) {
1306
1306
  doc.req_id = req_id;
1307
1307
  }
1308
+
1309
+ if (contact_uid) {
1310
+ const ret = await db_module.get_couch_doc('xuda_accounts', contact_uid);
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;
1314
+ }
1315
+
1308
1316
  return await db_module.save_couch_doc('xuda_contacts', doc);
1309
1317
  }
1310
1318
  return { code: -1, data: 'contact not found' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.353",
3
+ "version": "1.2.355",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {