Increased couchdb update time permissiveness

This commit is contained in:
benweet 2014-09-12 13:01:40 +01:00
parent 8f5da7998f
commit 76b1a19f33

View File

@ -21,7 +21,7 @@ var validate = function(newDoc) {
if(toString.call(newDoc.updated) !== '[object Number]') {
throw({forbidden: 'Update time must be an integer.'});
}
if(newDoc.updated > Date.now() + 60000) {
if(newDoc.updated > Date.now() + 300000) {
throw({forbidden: 'Update time is in the future, please check your clock!'});
}
if(toString.call(newDoc.title) !== '[object String]') {