diff --git a/src/routes/access.js b/src/routes/access.js index 843df2d..d9e47c8 100644 --- a/src/routes/access.js +++ b/src/routes/access.js @@ -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) { diff --git a/src/routes/sync.js b/src/routes/sync.js index f4ff5ac..cd379c7 100644 --- a/src/routes/sync.js +++ b/src/routes/sync.js @@ -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);