@xuda.io/account_module 1.2.1082 → 1.2.1084

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 +3 -19
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2491,28 +2491,12 @@ export const update_account_profile = async function (req, job_id, headers) {
2491
2491
  }
2492
2492
 
2493
2493
  acc_obj.ts = Date.now();
2494
- const doc = {
2495
- _id: await _common.xuda_get_uuid('contact_profile'),
2496
- stat: 3,
2497
- date_created_ts: d,
2498
- ts: d,
2499
- docType: 'account_profile',
2500
2494
 
2501
- uid,
2502
- profile_name, //: profile_name || acc_obj.account_info.business_name || acc_obj.account_info.name,
2503
- profile_signature,
2504
- profile_email,
2505
- profile_picture,
2506
- profile_avatar,
2507
- profile_picture_obj,
2508
- profile_avatar_obj,
2509
- };
2510
- const save_ret = await db_module.save_couch_doc('xuda_accounts', doc);
2511
- // acc_obj.active_profile_id = save_ret.data.id;
2495
+ const save_ret = await db_module.save_couch_doc('xuda_accounts', acc_obj);
2512
2496
 
2513
- return { code: 55, data: save_ret };
2497
+ return { code: 56, data: save_ret };
2514
2498
  } catch (err) {
2515
- return { code: -55, data: err.message };
2499
+ return { code: -56, data: err.message };
2516
2500
  }
2517
2501
  };
2518
2502
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1082",
3
+ "version": "1.2.1084",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {