@xuda.io/account_module 1.2.21 → 1.2.23
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 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -517,13 +517,14 @@ exports.get_account_data = async function (req) {
|
|
|
517
517
|
};
|
|
518
518
|
|
|
519
519
|
exports.get_user_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
|
}
|
|
@@ -830,6 +831,7 @@ exports.save_ssh_key = async function (req) {
|
|
|
830
831
|
uid,
|
|
831
832
|
docType: "ssh_key",
|
|
832
833
|
date_created_ts: Date.now(),
|
|
834
|
+
date_created: Date.now(),
|
|
833
835
|
stat: 3,
|
|
834
836
|
};
|
|
835
837
|
|