fix siteVerion check & reload page after batchUpdate if needed, @lefnire let me know what do you think and if it needs to be applied to other routes too

This commit is contained in:
Matteo Pagliazzi
2013-12-06 21:43:25 +01:00
parent 524796ba25
commit 9b459e37f3
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports.cors = function(req, res, next) {
var siteVersion = 0;
module.exports.forceRefresh = function(req, res, next){
if(req.query.siteVersion && req.query.siteVersion !== siteVersion){
if(req.query.siteVersion && req.query.siteVersion != siteVersion){
return res.json(400, {needRefresh: true});
}