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:
+1
-1
@@ -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});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user