@xuda.io/account_module 1.2.1038 → 1.2.1040

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 +2 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2483,12 +2483,13 @@ setTimeout(async () => {
2483
2483
 
2484
2484
  // ret = await get_account_ai_usage({ uid });
2485
2485
  // ret = await create_account_profile({ uid });
2486
+ ret = await get_profiles({ uid });
2486
2487
 
2487
2488
  console.log(ret);
2488
2489
  }, 1000);
2489
2490
 
2490
2491
  export const get_profiles = async function (req) {
2491
- const { _id, uid, name, limit, skip, bookmark, search, filter_type = 'all', profile_id } = req;
2492
+ const { _id, uid, profile_name, limit, skip, bookmark, search, filter_type = 'all', profile_id } = req;
2492
2493
 
2493
2494
  if (_id) {
2494
2495
  let data = await db_module.get_couch_doc('xuda_accounts', _id);
@@ -2516,11 +2517,6 @@ export const get_profiles = async function (req) {
2516
2517
  break;
2517
2518
  }
2518
2519
 
2519
- case 'pinned': {
2520
- opt.selector.pinned = true;
2521
- break;
2522
- }
2523
-
2524
2520
  default:
2525
2521
  break;
2526
2522
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1038",
3
+ "version": "1.2.1040",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {