Update src/widgets/wgeasy/proxy.js

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Conner Hnatiuk 2024-05-16 22:58:37 -06:00 committed by GitHub
parent 2ae0105d52
commit 0dba883641
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,11 +64,7 @@ export default async function wgeasyProxyHandler(req, res) {
); );
const dataParsed = JSON.parse(data); const dataParsed = JSON.parse(data);
if (widget.threshold) { dataParsed.push({ threshold: widget.threshold ?? 2 });
dataParsed.push({ threshold: widget.threshold });
} else {
dataParsed.push({ threshold: 2 });
}
return res.send(dataParsed); return res.send(dataParsed);
} }