@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.
- package/index.js +5 -4
- 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.
|
|
519
|
+
exports.get_account_projects = async function (req) {
|
|
520
|
+
const { uid } = req;
|
|
520
521
|
var opt = {
|
|
521
|
-
key:
|
|
522
|
+
key: uid,
|
|
522
523
|
};
|
|
523
524
|
|
|
524
525
|
if (
|
|
525
|
-
_conf.superuser_account_ids.includes(
|
|
526
|
-
_conf.support.support_team_account_ids.includes(
|
|
526
|
+
_conf.superuser_account_ids.includes(uid) ||
|
|
527
|
+
_conf.support.support_team_account_ids.includes(uid)
|
|
527
528
|
) {
|
|
528
529
|
opt = {};
|
|
529
530
|
}
|