From 10d979e545d0ca164215f358cc4fdaaeac365c4a Mon Sep 17 00:00:00 2001 From: Arthur Lu <root@tronnet.net> Date: Mon, 17 Feb 2025 21:19:54 +0000 Subject: [PATCH] cleanup comments --- src/routes/access.js | 1 - src/routes/sync.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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);