diff options
-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; |