diff options
author | Tom Smeding <tom@tomsmeding.com> | 2023-11-18 10:52:03 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2023-11-18 10:52:03 +0100 |
commit | 6041d2095c66e5849e8a2c03177e106498d812d8 (patch) | |
tree | db732ca4701ffa968bf3ab4a28a227e2b30980fb | |
parent | 1e2d621e9b60577e59f8ae65ed07ae995a9fba9f (diff) |
Fix bug
-rw-r--r-- | modules/changes/changes.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/changes/changes.js b/modules/changes/changes.js index 8182815..0dd237d 100644 --- a/modules/changes/changes.js +++ b/modules/changes/changes.js @@ -338,15 +338,15 @@ module.exports=function(app,io,_moddir){ res.send("URL not found in watch list"); return; } - var res=new Array(urls.length); + var out=new Array(urls.length); for(var i=0;i<urls.length;i++){ var tl=new Array(urls[i].timeline.length); for(var j=0;j<urls[i].timeline.length; j++){ tl[i]=[urls[i].timeline[0],urls[i].timeline[1]]; } - res[i]={url:urls[i].url,timeline:tl}; + out[i]={url:urls[i].url,timeline:tl}; } - res.json(res); + res.json(out); }); app.post("/changes/url",function(req,res){ var url=req.body; |