@xuda.io/account_module 1.2.831 → 1.2.833

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 +7 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -495,7 +495,7 @@ export const get_account_data = async function (req) {
495
495
  storage_plan: acc_obj.storage_plan,
496
496
  storage_plan_changed: acc_obj.storage_plan_changed,
497
497
  account_project_id: acc_obj.account_project_id,
498
- boarded: acc_obj.boarded,
498
+ isBoarded: acc_obj.isBoarded,
499
499
 
500
500
  prices_info: acc_obj.prices_info,
501
501
  activity_usage: acc_obj.activity_usage,
@@ -1613,9 +1613,11 @@ export const get_contacts = async function (req) {
1613
1613
  shared_from.docs = await get_pending_share_contact_in(uid);
1614
1614
  }
1615
1615
  // my contact
1616
-
1617
- const my_contact_doc = await get_user_contact(uid, uid);
1618
- my_contact.docs = [my_contact_doc];
1616
+ if (!filter_type) {
1617
+ //all
1618
+ const my_contact_doc = await get_user_contact(uid, uid);
1619
+ my_contact.docs = [my_contact_doc];
1620
+ }
1619
1621
  }
1620
1622
  let contact_docs = { docs: [] };
1621
1623
  for await (let doc of contacts.docs) {
@@ -2246,7 +2248,7 @@ export const onboarding_completed = async function (req, job_id, headers) {
2246
2248
  }
2247
2249
 
2248
2250
  account_doc.boarded_info = { headers, date_ts: Date.now() };
2249
- account_doc.boarded = true;
2251
+ account_doc.isBoarded = true;
2250
2252
  const save_ret = await db_module.save_couch_doc('xuda_accounts', account_doc);
2251
2253
  return save_ret;
2252
2254
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.831",
3
+ "version": "1.2.833",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {