not a fix

This commit is contained in:
NK 2023-03-06 15:43:53 +00:00
parent e20f2c24ff
commit 614c307618

View file

@ -12,8 +12,7 @@ export default async function handler(req, res) {
return;
}
console.log(req.body);
let dat;
dat = req.body;
let dat = req.body;
if (typeof dat !== "string" || typeof dat == "undefined") {
res.status(400).json({error: "ByteData is not a string or undefined"});
return;