Permalink
Browse files

Remove excessive modified date checking in vdu

  • Loading branch information...
1 parent 2b03518 commit 7e72c6e7510dc1cf1ce06d225c5cd8b9901c7710 @isaacs isaacs committed Apr 30, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 registry/validate_doc_update.js
View
6 registry/validate_doc_update.js
@@ -233,8 +233,10 @@ module.exports = function (doc, oldDoc, user, dbCtx) {
"new=" + JSON.stringify(doc.versions[v]) + "\n" +
"old=" + JSON.stringify(oldVersions[v]))
- assert(doc.time[v] === doc.time.modified,
- v + " is modified, should match modified time")
+ // var mt = Date.parse(doc.time.modified).getTime()
+ // , vt = t.getTime()
+ // assert(Math.abs(mt - vt) < 1000 * 60 * 60,
+ // v + " is modified, should match modified time")
// XXX Remove the guard these once old docs have been found and
// fixed. It's too big of a pain to have to manually fix

0 comments on commit 7e72c6e

Please sign in to comment.