@xuda.io/account_module 1.2.1382 → 1.2.1383

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 +4 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1989,11 +1989,11 @@ export const add_contact = async function (req, job_id, headers) {
1989
1989
  if (account_code < 0) {
1990
1990
  throw new Error(`account ${contact_uid} not found`);
1991
1991
  }
1992
- if (!account_obj.account_info.profile_picture) {
1993
- profile_picture_obj = await ai_module.get_profile_picture(uid, account_type, name, { email, context, metadata, account_info: account_obj.account_info }, account_profile_info, job_id, headers);
1992
+ if (!account_info.profile_picture) {
1993
+ profile_picture_obj = await ai_module.get_profile_picture(uid, account_type, name, { email, context, metadata, account_info }, account_profile_info, job_id, headers);
1994
1994
  profile_picture = profile_picture_obj.url;
1995
- account_obj.account_info.profile_picture_obj = profile_picture_obj;
1996
- account_obj.account_info.profile_picture = profile_picture;
1995
+ account_info.profile_picture_obj = profile_picture_obj;
1996
+ account_info.profile_picture = profile_picture;
1997
1997
  const account_save_ret = await db_module.save_couch_doc('xuda_accounts', account_obj);
1998
1998
  }
1999
1999
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1382",
3
+ "version": "1.2.1383",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {