commit 6b31420aea44554db46dcdbe0ba01a3bbe349787
parent 430f91eee7c78c066d065702440d83f469c75138
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Mon, 16 Mar 2026 17:39:07 +0100
fix(141): undefined input var
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/api/server.cjs b/src/api/server.cjs
@@ -250,6 +250,7 @@ server.on('request', async (req, res) => {
} // end switch
} else if (req.method === 'POST') {
let body = [];
+ let input = "";
switch(url.pathname) {
case '/v1/auth/requestMagicLink':
@@ -310,7 +311,7 @@ server.on('request', async (req, res) => {
throw new Error("Empty request body")
}
input = JSON.parse(b);
- console.log(' distinctStartlist request with headIds:', input.heat_ids);
+ console.log(' distinctStartlist request with heatIds:', input.heat_ids);
const user = await verifyToken(req, token)
// return public heats only for unauthenticated users