cleanup comments

This commit is contained in:
Arthur Lu 2025-02-17 21:19:54 +00:00
parent b0b4c68f15
commit 10d979e545
2 changed files with 1 additions and 2 deletions

@ -63,7 +63,6 @@ router.post("/ticket", async (req, res) => {
};
const domain = global.config.application.domain;
// const userRealm = params.username.split("@").at(-1);
const userObj = global.utils.getUserObjFromUsername(params.username);
let backends = global.userManager.getBackendsByUser(userObj);
if (backends == null) {

@ -51,7 +51,7 @@ if (schemes.hash.enabled) {
if (!auth) {
return;
}
// get current cluster resources
// get current cluster resources - do not use fabric here because fabric is not always updated to changes like up/down state changes
const status = (await global.pve.requestPVE("/cluster/resources", "GET", { cookies: req.cookies })).data.data;
// filter out just state information of resources that are needed
const state = extractClusterState(status, resourceTypes);