@xuda.io/account_module 1.2.22 → 1.2.24

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.js +5 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -516,14 +516,15 @@ exports.get_account_data = async function (req) {
516
516
  // return get_info();
517
517
  };
518
518
 
519
- exports.get_user_projects = async function (req) {
519
+ exports.get_account_projects = async function (req) {
520
+ const { uid } = req;
520
521
  var opt = {
521
- key: req.uid,
522
+ key: uid,
522
523
  };
523
524
 
524
525
  if (
525
- _conf.superuser_account_ids.includes(req.uid) ||
526
- _conf.support.support_team_account_ids.includes(req.uid)
526
+ _conf.superuser_account_ids.includes(uid) ||
527
+ _conf.support.support_team_account_ids.includes(uid)
527
528
  ) {
528
529
  opt = {};
529
530
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.22",
3
+ "version": "1.2.24",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {