mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix: magvar used for BE calls
fix: unit summary labels
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = function () {
|
||||
res.send(response[0].audioContent);
|
||||
res.end()
|
||||
}
|
||||
).catch((error) => res.sendStatus(400));
|
||||
).catch((error) => res.sendStatus(404));
|
||||
});
|
||||
|
||||
router.put("/recognize", (req, res, next) => {
|
||||
@@ -46,7 +46,7 @@ module.exports = function () {
|
||||
.map((result) => result.alternatives[0].transcript)
|
||||
.join("\n");
|
||||
res.send(transcription)
|
||||
}).catch((error) => res.sendStatus(400));
|
||||
}).catch((error) => res.sendStatus(404));
|
||||
});
|
||||
|
||||
return router;
|
||||
|
||||
@@ -138,7 +138,7 @@ module.exports = function (configLocation) {
|
||||
sessionData = {};
|
||||
res.sendStatus(404);
|
||||
} else {
|
||||
res.send(sessionData[req.params.profileName]);
|
||||
res.send(sessionData[req.params.profileName] ?? {});
|
||||
res.end();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user