comment a bunch of code

This commit is contained in:
Arthur Lu
2023-07-10 06:50:29 +00:00
parent ffdce767ab
commit f0e5340474
4 changed files with 88 additions and 8 deletions
+3 -3
View File
@@ -755,9 +755,9 @@ app.get(`/api/:node(${nodeRegexP})/pci`, async (req, res) => {
if (!auth) {
return;
}
let userNodes = db.getUserConfig(req.cookies.username).nodes;
if (!userNodes.includes(params.node)){
res.status(401).send({auth: false, path: params.node});
const userNodes = db.getUserConfig(req.cookies.username).nodes;
if (!userNodes.includes(params.node)) {
res.status(401).send({ auth: false, path: params.node });
res.end();
return;
}