Update src/widgets/wgeasy/proxy.js
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
2ae0105d52
commit
0dba883641
@ -64,11 +64,7 @@ export default async function wgeasyProxyHandler(req, res) {
|
||||
);
|
||||
|
||||
const dataParsed = JSON.parse(data);
|
||||
if (widget.threshold) {
|
||||
dataParsed.push({ threshold: widget.threshold });
|
||||
} else {
|
||||
dataParsed.push({ threshold: 2 });
|
||||
}
|
||||
dataParsed.push({ threshold: widget.threshold ?? 2 });
|
||||
|
||||
return res.send(dataParsed);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user