From 4b7dde997e7cfaf7fa35647e4a726c5cb672727c Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 29 Sep 2016 23:06:15 +0200 Subject: Add history deletion to client (and fix bugs in it) --- modules/changes/changes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/changes/changes.js') diff --git a/modules/changes/changes.js b/modules/changes/changes.js index b491e0b..7c21326 100644 --- a/modules/changes/changes.js +++ b/modules/changes/changes.js @@ -158,7 +158,7 @@ module.exports=function(app,io,_moddir){ persist.setItemSync("urls",urls); res.send(); }); - app.delete("/changes/url/delete",function(req,res){ + app.delete("/changes/url/history",function(req,res){ var param; try {param=JSON.parse(req.body);} catch(e){ @@ -184,6 +184,7 @@ module.exports=function(app,io,_moddir){ i--; } } + persist.setItemSync("urls",urls); res.status(200); res.send(); }); -- cgit v1.2.3-54-g00ecf