summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-02-06 18:21:36 +0100
committerTor Andersson <tor@ccxvii.net>2025-02-07 17:08:39 +0100
commitaf15108d24ee4ff2422d97b7c83d43140276fb9e (patch)
tree6a8d2300634b3b83b2217ea31f666a46376b8544 /server.js
parent9cd9264d7154005c5d8633165684bf83647b7b5b (diff)
downloadserver-af15108d24ee4ff2422d97b7c83d43140276fb9e.tar.gz
Minor fixes.
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.js b/server.js
index 8ab6a3f..9ca4459 100644
--- a/server.js
+++ b/server.js
@@ -407,7 +407,7 @@ function must_pass_altcha(req, res, next) {
return next()
}
-app.get("/altcha-challenge", async (req, res) => {
+app.get("/altcha-challenge", function (req, res) {
return res.json(altcha_create_challenge())
})
@@ -3261,7 +3261,7 @@ function make_concurrent_rounds(v, k, n) {
let rbibd = designs.resolvable_bibd(v, k)
if (rbibd)
- return rbibd.slice(0, n).flat()
+ return [ rbibd.slice(0, n).flat() ]
throw new Error("cannot create rounds for this configuration")
}